Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Role name / role instance not being set in App Insights #147

Open
EnBW-mobility opened this issue Jan 27, 2023 · 2 comments
Open

Role name / role instance not being set in App Insights #147

EnBW-mobility opened this issue Jan 27, 2023 · 2 comments

Comments

@EnBW-mobility
Copy link

Hey.

We are using an app insights instance for multiple services.
To be able to find problems for a specific service, we rely on the role name and role instance values in app insights.

The bundle is running fine and sending all events, traces, etc. to app insights, but it's not filling the role name and role instance "tags".
Is there some environment variable missing that I need to set to get it transferred automatically or is the telemetry client not sending the data? I know that for some SDKs, you have to add the data "manually" because it's not automatically set by the telemetry client.

Perhaps the question is better answered in a different repo?

Kind regards
Yvonne

@norberttech
Copy link
Contributor

Hey, to be honest, I'm not sure.
You might want to check here: https://github.com/app-insights-php/applicationInsights-php (it's a fork of an archived repository developed by Microsoft), which is the foundation for this bundle.
If there is nothing there, then maybe it could be added?

@spamn
Copy link

spamn commented Mar 15, 2023

There are setRole and setRoleInstance methods for name and instance in https://github.com/app-insights-php/applicationInsights-php.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants