Skip to content
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

Populating application_Version with agent V3 #1392

Closed
electrified opened this issue Nov 24, 2020 · 1 comment · Fixed by #1397
Closed

Populating application_Version with agent V3 #1392

electrified opened this issue Nov 24, 2020 · 1 comment · Fixed by #1397

Comments

@electrified
Copy link

electrified commented Nov 24, 2020

Is your feature request related to a problem? Please describe.
We have recently migrated to agent V3. We are continuing to use SDK 2.6.2 as we have some custom events. Previously we were populating the version number via the SDK and the ContextInitializer, now this has no effect

@Bean
fun versionContextInitializer() = ContextInitializer { it.component.setVersion(version) }

Describe the solution you would like
Ideally a way to populate the version number

Describe alternatives you have considered
We are currently adding a customDimension via applicationinsights.json as below, but ideally we would like to populate the "real" application_Version field

  "customDimensions": {
    "application_Version": "${BUILD_NUMBER}"
  }
@trask
Copy link
Member

trask commented Dec 17, 2020

This is supported now in 3.0.1-BETA: https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#custom-dimensions

@ghost ghost locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants