Skip to content

Conversation

@tobert
Copy link
Contributor

@tobert tobert commented Jan 30, 2023

Per #142, currently otel-cli doesn't follow the spec around protocols. This PR revises the protocol handling for --endpoint and adds --protocol to more closely or exactly follow the spec.

Amy Tobey added 6 commits January 30, 2023 13:31
seems to be cruft leftover from the renovate bot merge
Adds the flag & envvars along with a bunch of tests that mostly fail at
this point. Once these all pass it should be good to ship.
Don't try to parse JSON output when command is expected to fail.

Initialize empty maps in results so they don't come back as nil
in failure tests.
Lots of little adjustments all over.

gRPC with http endpoints now works when protocol is grpc.

Protocol flag & envvars seem to be fully implemented.

Removed mentions of http/json since opentelemetry-go doesn't support it.

Updated README to reflect new functionality.
@tobert tobert marked this pull request as ready for review January 30, 2023 20:43
@tobert
Copy link
Contributor Author

tobert commented Jan 30, 2023

@cyrille-leclerc can you please take a peek at this PR?

It doesn't work anyways, will revisit when/if it's needed.
@tobert tobert merged commit e8b86f6 into main Jan 31, 2023
@tobert tobert deleted the 142-otel_exporter_otlp_protocol branch January 31, 2023 19:29
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