open-telemetry / open-telemetry/opentelemetry-python-contrib
opamp-client: add support for non-JSON effective configs
@pmcollins is already working on this.
Since May 5, 2026.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
What problem do you want to solve?
The Python OpAMP client (opentelemetry-opamp-client) currently supports building effective config messages from JSON content. It would be useful to also support effective configs that have arbitrary MIME-types, represented as text or bytes.
This aligns with the OpAMP spec, which defines AgentConfigFile.body as raw bytes, and content_type as a MIME-type describing those bytes. My organization would like this capability to use the OpAMP client to emit the effective config as text/plain, newline-delimited, environment variables.
Describe the solution you'd like
I'd like to update the build_effective_config_message function to accept string or byte message bodies and arbitrary MIME types.
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
Yes
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.