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

Parsing console output json objects into ReadableSpan objects #4357

Open
uptickmetachu opened this issue Dec 14, 2024 · 0 comments
Open

Parsing console output json objects into ReadableSpan objects #4357

uptickmetachu opened this issue Dec 14, 2024 · 0 comments

Comments

@uptickmetachu
Copy link

uptickmetachu commented Dec 14, 2024

Is your feature request related to a problem?

I would like to be able to easily parse span objects outputted to stdout via ConsoleSpanExporter into actual span objects with which I can manually export via opentelemetry.

Describe the solution you'd like

Add a ReadableSpan.from_json(XXX) or ReadableSpan.from_dict

Describe alternatives you've considered

No response

Additional Context

I'm writing a script to instrument bash commands during CI. There is currently overhead when exporting to a remote GRPC otel server (while using the python library).

I'm currently writing a python equivalent of otel-cli and I would like to write out console spans to a file/directory and then re-export these spans at the end of a CI pipeline or upload them as an artifact to be parsed by a python library.

Would you like to implement a fix?

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant