Skip to content

Fix import statements and update service name in OpenTelemetry config#559

Merged
matthewmeyer merged 1 commit into
mainfrom
users/matthewm/fix-pythonsample-otel
May 7, 2026
Merged

Fix import statements and update service name in OpenTelemetry config#559
matthewmeyer merged 1 commit into
mainfrom
users/matthewm/fix-pythonsample-otel

Conversation

@matthewmeyer

Copy link
Copy Markdown
Contributor

Summary

This pull request updates import statements in samples/python/otel/src/main.py to use relative imports and changes the service name used in the OpenTelemetry configuration. These changes help ensure the code works correctly as a module and improve service naming consistency.

Import improvements:

  • Changed all import statements from absolute to relative imports to ensure proper module resolution when running the script as part of a package.

Configuration update:

  • Updated the service name in the configure_otel_providers call from "quickstart_agent" to "otel_quickstart_agent" for improved clarity and consistency.

Testing

Ran locally and verified

@github-actions github-actions Bot added the Samples Changes to Samples label May 7, 2026
@matthewmeyer matthewmeyer merged commit 99fb685 into main May 7, 2026
7 checks passed
@matthewmeyer matthewmeyer deleted the users/matthewm/fix-pythonsample-otel branch May 7, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Samples Changes to Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants