Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
82 stars 12 forks source link

Service Instance ID for Logging #286

Open fauxcoding opened 5 years ago

fauxcoding commented 5 years ago

Is it possible for a service instance to know its own instance ID?

My services are logging to Application Insights and I would like to set the Cloud Role Instance

I would have thought the instance would have been injected as an environmental variable in the container but I can't find any docs on it.

Thanks in advance.

aloneguid commented 5 years ago

I'm interested in this too. I fully understand that container workloads should be as portable as possible, however it would still be essential to get some context information.

mattrowmsft commented 5 years ago

We will expose these via environment variables eventually (some of the dimensions are already there). We need to settle on a naming scheme for them (what's there today might change) and get them documented.

There is a separate issue with App Insights on windows right now, if that is the platform you are targeting. Windows has a bug in hyperv containers where the timezone is adjusted for incorrectly, so the container thinks it's running 7 hours in the future. AI drops all the events b\c of that. We are working with windows/dotnet folks to get that resolved.

tomkerkhove commented 5 years ago

Would you mind elaborating on the early thinking of the naming for these?

kumarz commented 3 years ago

I am interested as well to know.

tomkerkhove commented 3 years ago

The service is retiring so don't think it's coming.