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

Add a baggage example #20

Open
bryce-b opened this issue Jan 10, 2024 · 0 comments
Open

Add a baggage example #20

bryce-b opened this issue Jan 10, 2024 · 0 comments
Assignees

Comments

@bryce-b
Copy link
Contributor

bryce-b commented Jan 10, 2024

  1. Review the open-telemetry baggage API spec, and the opentelemetry-swift implementation.
  2. spin up an instance of apm-integration-testing
    a. use with opbeans-dotnet, which is the only service that supports otel baggage.
    b. run example python3 ./scripts/compose.py start --with-opbeans-dotnet main
    c. kibana will be available on 127.0.0.1:5601
  3. opbean-swift should automatically connect to local apm-server and opbeans service (see note below). You can make changes to these connections using agent-conf.json and apiData.json.
  4. configure a baggage manager and register it OpenTelemetry.registerBaggageManager(...). Do this because default baggage manager is probably a no-op.
  5. Add a new baggage attribute: request.source: opbeans-swift. This should get automatically added to all out going requests, but you can verify this by looking at opentelemetry-swift URLSession instrumentation

Note:
You'll need to expose opbeans-dotnet in docker-compose.yml (in apm-integration-testing):

...
"ports": [
  "127.0.0.1:3004:3000"
]

to

 
"ports": [
    "3004:3000"
]

then docker-compose up -d

@paliferka paliferka self-assigned this Apr 9, 2024
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

No branches or pull requests

2 participants