-
Notifications
You must be signed in to change notification settings - Fork 631
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
Zipkin exporter add support for v1 api json format #1411
Zipkin exporter add support for v1 api json format #1411
Conversation
…RANSPORT_FORMAT_JSON/PROTOBUF vals to not overload w/ Content-Type
…ry in pyproject.toml for black
…os.environ access for retrieving env vars
…asier addition of supported API formats
….5 + a bug fix related to max_tag_value_length in the encoders
…ce_id() and encode_span_id() and base Encoder class
…not in the Sender
…exporter_v1_json_support_refactor
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py
Show resolved
Hide resolved
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/encoder/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nits, @robwknox would it be possible to address @lonewolf3739 comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments. LGTM.
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/encoder/__init__.py
Outdated
Show resolved
Hide resolved
@lonewolf3739 , @ocelotl , @codeboten believe all comments are addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor change in the comment about the env variable. Solid refactor, thanks a lot!
exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/encoder/__init__.py
Outdated
Show resolved
Hide resolved
…y-python into 1173_zipkin_exporter_v1_json_support_fix
@ocelotl has your change request been addressed? If so, please approve, thanks! |
Sure, will review |
Description
Adds support for the Zipkin Exporter v1 API json format . Since this brings the number of supported formats to 3 (v1-json, v2-json, v2-protobuf) and with v1-thrift on the way, the PR includes notable refactoring of the exporter to introduce the concept of an Encoder.
Breaking changes
ZipkinSpanExporter()
signature changes:service_name
removed to conform to new specprotocol
mandatory arg added (required arg ordering change)url
=>endpoint
to be consistent with spec terminology and related env varOTEL_EXPORTER_ZIPKIN_ENDPOINT
and packageDEFAULT_ENDPOINT
ipv4
=>local_node_ipv4
to more clearly denote this is for the local node endpointipv6
=>local_node_ipv6
to more clearly denote this is for the local node endpointlocal_node_port
: added. This value was being improperly parsed from theurl
when it is supposed to represent the local node listening port. Added param so that it can be passed in along with the local node ip addresses if desired.retry
removed for now to avoid confusion since the logic is not currently implemented.Fixes #1173
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist: