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

examples: add python span profiling #3764

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

marcsanmi
Copy link
Contributor

@marcsanmi marcsanmi commented Dec 11, 2024

Note for reviewers

I'm currently reusing the Golang load generator since it's already instrumented with OpenTelemetry for tracing and profiling.

Should we copy the load generator code into this example instead of referencing it? (I could have done the same with the Flask code, but I'd prefer the example to be self-contained...). That's why I'm leaning towards adding the load generator in this example as well.

Note that span_name is only available for the load generator since otel-profiling-python doesn't add it as label unlike otel-profiling-go.

@marcsanmi marcsanmi requested a review from simonswine December 11, 2024 15:01
@marcsanmi marcsanmi requested a review from a team as a code owner December 11, 2024 15:01
@marcsanmi marcsanmi force-pushed the marcsanmi/examples-python-tracing branch from 2e394a3 to d1033c0 Compare December 11, 2024 15:03
@simonswine
Copy link
Contributor

Should we copy the load generator code into this example instead of referencing it? (I could have done the same with the Flask code, but I'd prefer the example to be self-contained...). That's why I'm leaning towards adding the load generator in this example as well.

Maybe I remembered it wrong, but in one of the team meetings I think we spoke about loadgen go vs. python and that we should use the go one everywhere, but I might be misremembering that. I personally think it is ok to reduce it to go. The python example is mainly the rideshare.

Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

examples/tracing/python/docker-compose.yaml Outdated Show resolved Hide resolved
@marcsanmi marcsanmi requested a review from a team as a code owner December 12, 2024 08:37
@marcsanmi marcsanmi force-pushed the marcsanmi/examples-python-tracing branch from 6b80f3d to e9cc8e8 Compare December 12, 2024 08:38
@marcsanmi marcsanmi force-pushed the marcsanmi/examples-python-tracing branch from e9cc8e8 to c368dd7 Compare December 12, 2024 08:51
@marcsanmi marcsanmi merged commit ac0ff3d into main Dec 12, 2024
18 checks passed
@marcsanmi marcsanmi deleted the marcsanmi/examples-python-tracing branch December 12, 2024 10:16
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.

3 participants