Replies: 6 comments 4 replies
-
I think storing the Git URL makes sense indeed. I'm not aware of an OTEL way of storing that, but a quick search did reveal the following: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes |
Beta Was this translation helpful? Give feedback.
-
From my past working experience, I would say I would like to know not only the URL, but also the provider type (i.e. github, bitbucket, gitlab or something else). Because if we get URLs that don't match the typical hosted solutions it's tricky to create the right deeplink URL from our dashboard. |
Beta Was this translation helpful? Give feedback.
-
just for the sake of having a record, i entertained the idea of (alternatively) a gauge that maps the service name to the remote repository.
however, i don't think this carries any unique benefit, and it would make the query slightly more involved. so thumbs up for the og benno proposal 👍 |
Beta Was this translation helpful? Give feedback.
-
I did manage to find a reference to a |
Beta Was this translation helpful? Give feedback.
-
I've created an spec update for this, see: #88 |
Beta Was this translation helpful? Give feedback.
-
This will be part of v1.0. See #88 |
Beta Was this translation helpful? Give feedback.
-
Just as we currently track the commit and branch in the
build_info
metric, it would be useful for this metric to also include the git repository address. This could be useful for consumers of the metrics.The implementation would just be a simple label on the
build_info
metric.Examples
A user has autometrics setup for their application and are being scraped. These metrics will now also include the repository address. While viewing the metrics for specific function in the explorer, they can easily open their repository since explorer was able to retrieve the repository address from the metrics.
A deeper integration could be with explorer and the GitHub application. If you were to look at a specific function within explorer, you can open a deep link to the correct file and line/column within the file for a specific branch.
Considerations
It should be made easy to automatically add this information, but it should also be possible to manually set this
Not every user wants to expose this information as this could be considered private, so there should be a way to opt-out (if it is done automatically).
What will go into the key? I think it makes sense to have it just be the git address. So this means it can be a ssh or http endpoint with every possibility as the domain and path. This means that the explorer is responsible to parse and inspect the domain to see if they offer higher level support (ie. if the is
github.com
then we can create a specific deep link).Is there anything in the OTEL specification which covers this something like or similar to this? Does it make sense to reuse a certain label key that OTEL is using for example.
Beta Was this translation helpful? Give feedback.
All reactions