-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not possible to set cloud_RoleName #655
Comments
This is not exposed to the worker, as the host is in control of this behavior. @maciejo-nordcloud can you please expand on your scenario/requirement? @brettsam is this something we want to add? |
Flagging this for discussion/design. For clarity, the difference here is not between v3 and v4, but instead, between in-proc and out-of-proc models. One of the potential solutions is to expose a configuration we could use for any of the supported languages, but we need to discuss. |
I think we'll need to look at OpenTelemetry concepts here and see if there's a more general, non-AppInsights, solution. I don't really want to expose some ApplicationInsights-specific setting value only to move onto OpenTelemetry soon. For now, this value cannot be changed from the host side unless you register your own |
We will be working on improving observability from the host side. Following OTel semantics, which should cover Closing this against that issue: Azure/azure-functions-host#9273 |
Hi,
I tried to set the cloud_RoleName using ITelemetryInitializer but it doesn't work. In App Insights it is still being set as the name of the app service which is hosting it.
public class TelemetryInitializer : ITelemetryInitializer { private static string RoleName = "Modernised.Responses"; public void Initialize(ITelemetry telemetry) { // set custom role name here telemetry.Context.Cloud.RoleName = "Name"; } }
services.AddSingleton<ITelemetryInitializer, TelemetryInitializer>();
Is there any other way to do it?
The text was updated successfully, but these errors were encountered: