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

RUM-1836 feat(otel-tracer): update Example app with Otel tracer use cases #1684

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

ganeshnj
Copy link
Contributor

What and why?

Example apps don't have Otel tracer use cases

How?

Copied what the tracer page and replicated the same via OTel tracer.

Single span

Screenshot 2024-02-16 at 16 57 10

RUM integration

Screenshot 2024-02-16 at 16 57 20

Complex span

Screenshot 2024-02-16 at 16 57 28

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests for Core, RUM, Trace, Logs, CR and WVT
  • Run unit tests for Session Replay
  • Run integration tests
  • Run smoke tests
  • Run tests for tools/

@ganeshnj ganeshnj requested review from a team as code owners February 16, 2024 15:59
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for updating Example project 💪!


import UIKit
import DatadogCore
import DatadogTrace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit/ In theory, we need import DatadogTrace only to configure the OTel tracer, but here, instrumentation should be possible with only import OpenTelemetryApi, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's correct, because of SpanTags.resource, I needed the Trace import.

@ganeshnj ganeshnj merged commit 6100722 into ganeshnj/feat/otel-tracer Feb 20, 2024
11 of 13 checks passed
@ganeshnj ganeshnj deleted the otel-tracer-example-app branch February 20, 2024 10:00
@ncreated ncreated mentioned this pull request May 31, 2024
8 tasks
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.

2 participants