Skip to content

Populating application_Version with agent V3 #1392

@electrified

Description

@electrified

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}"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions