-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Describe the bug
CodeVersion is an attribute that Rollbar allows us to affiliate when sending payload to Rollbar. The expected location in the payload is documented in create-item documentation (https://docs.rollbar.com/reference/create-item). (Search for code_version)
What users have experienced from .Net SDK is finding codeversion value declared under config.RollbarPayloadAdditionOptions.CodeVersion instead. Since it is in the incorrect location, the payload version functionality does not work.
With that, Rollbar won't recognize this as the version of the code specifically
- There's no hyperlink to github or Rollbar version screen in the occurrence detail page.
- There's no version data shows up in the version screen
To Reproduce
- Initialize Rollbar in the .Net app
- Add code version as config.RollbarPayloadAdditionOptions.CodeVersion as follow
config.RollbarPayloadAdditionOptions.CodeVersion = "1.0.0"; - Submit an item to Rollbar
- Review the occurrence under occurrence detail
- See the code version attribute is not in visible but instead config.RollbarPayloadAdditionOptions.CodeVersion with a non link-able commit key.
Suggestion
It would be great if code_version was a parameter to this method
// create valid Rollbar configuration:
RollbarInfrastructureConfig rollbarInfrastructureConfig =
new RollbarInfrastructureConfig(
RollbarSamplesSettings.AccessToken,
RollbarSamplesSettings.Environment
);