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

Make it possible to add new span attributes through Otel-Collector #323

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

ArthurSens
Copy link
Contributor

Fixes #308


Summary

Essentially this PR splits the creation of the variable ConfigMapData into multiple small functions.

While building the processor configuration, it will check if the installer config asks for extra span attributes:

  • No extra attributes means that the processor configuration will be empty
  • If there is extra attributes to be added, the processor configuration will exist.

How to test

You can open a workspace from this PR, then play around with the file installer/examples/full-config.yaml by adding or removing fields to tracing.extraSpanAttributes then running:

cd installer
make generate-full

This command will generate the file installer/monitoring-satellite.yml, and you'll notice that Otel-collector's configmap will be written as expected

@ArthurSens ArthurSens requested a review from a team September 21, 2022 18:32
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
@ArthurSens ArthurSens force-pushed the as/extra-span-attribute branch from 1bd93b4 to f580b23 Compare September 21, 2022 21:31
@ArthurSens
Copy link
Contributor Author

👋 @gitpod-io/platform -- I'm merging this one because we need to update previews with the extra attributes 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide ways to include new attributes to span
1 participant