-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate OC resource labels to Jaeger process tags (#325)
Preserve OC resource labels during translation to Jaeger by adding them to the process tags Right now we translate OC node to Jaeger process while completely ignoring OC resource labels resulting in loss of this data. This PR patches the OC > Jaeger translators by making sure the resource labels are recorded as Jaegerprocess tags. While this preserves process labels and prevents loss of such data when translating to Jaeger, it's not a perfect solution because: 1. It will replace any tags from OC Node with the same names. Current behaviour is to give precedence to resource labels over node attributes. We can make it configurable or revisit the decision later. 2. Translation is not reversible Translating back from Jaeger to OC will still not re-create the OC process object. It'll instead translate all the Jaeger process tags to OC node attributes. We could add some semantic convention to denote resource labels differently or add an additional tag to specify the resource tag names but doing so would add additional complexity to backends processing traces in the Jaeger format. Also, in practice, it's going to be very rare for people to translate from OC to Jaeger and then back from Jaeger to OC in the same data pipeline. While this doesn't solve the cases perfectly, we think it's better than completely dropping the resource data.
- Loading branch information
1 parent
df62b61
commit 8fa6afe
Showing
7 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters