-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
tracing: Add hostname to Zipkin config. (#14186) #14187
Conversation
Hi @esmet, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
3e3d203
to
3be765d
Compare
I force pushed an update to correct a DCO mistake per the guidelines. |
Need to fix the format. Run |
good call, done |
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.
Looks good. Please provide release notes and docs. Thanks!
@dio the release notes were easy enough 👍 As for docs, it looks like we have a sample Envoy config |
@@ -65,4 +65,8 @@ message ZipkinConfig { | |||
// Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be | |||
// used. | |||
CollectorEndpointVersion collector_endpoint_version = 5; | |||
|
|||
// Optional hostname to use when sending spans to the collector_cluster. Useful for collectors | |||
// that require a specific hostname. Defaults to `collector_cluster` above. |
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.
We usually link this to the actual field.
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.
Done. I did something similar to the link I added in the release notes, let me know if that's what you had in mind.
1e34385
to
bc0d00e
Compare
Can you check CI? Seems like "verify examples" failed on Zipkin. |
I looked at this but can't figure out why it failed. I see some configuration errors though:
I'll try rerunning to see if this reproduces. |
Signed-off-by: John Esmet <[email protected]>
Signed-off-by: John Esmet <[email protected]>
Signed-off-by: John Esmet <[email protected]>
Signed-off-by: John Esmet <[email protected]>
Signed-off-by: John Esmet <[email protected]>
Signed-off-by: John Esmet <[email protected]>
28a0d35
to
0e5aef7
Compare
I think this could be related to a merge to master that happened yesterday. I'll rebase. If CI goes green, @dio do you think the release notes change and API comments are enough to land this? |
I rebased and CI looks good now. This should be ready for final review :) |
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. Change looks good. However, this needs @envoyproxy/api-shepherds approval for API.
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.
/lgtm api
* master: (41 commits) event: Remove a source of non-determinism by always running deferred deletion before post callbacks (envoyproxy#14293) Fix TSAN bug in integration test (envoyproxy#14327) tracing: Add hostname to Zipkin config. (envoyproxy#14186) (envoyproxy#14187) [conn_pool] fix use after free in H/1 connection pool (envoyproxy#14220) lua: update deprecated lua_open to luaL_newstate (envoyproxy#14297) extension: use bool_flag to control extension link (envoyproxy#14240) stats: Factor out creation of cluster-stats StatNames from creation of the stats, to save CPU during xDS updates (envoyproxy#14028) test: add scaled timer integration test (envoyproxy#14290) [Win32 Signals] Add term and ctrl-c signal handlers (envoyproxy#13954) config: v2 transport API fatal-by-default. (envoyproxy#14223) matcher: fix UB bug caused by dereferencing a bad optional (envoyproxy#14271) test: putting fake upstream config in a struct (envoyproxy#14266) wasm: use Bazel rules from Proxy-Wasm Rust SDK. (envoyproxy#14292) docs: fix typo (envoyproxy#14237) dependencies: allowlist CVE-2018-21270 to prevent false positives. (envoyproxy#14294) typo in redis doc (envoyproxy#14248) access_loggers: removed redundant dep (envoyproxy#14274) fix http2 flaky test (envoyproxy#14261) test: disable flaky xds_integration_test. (envoyproxy#14287) http: add functionality to configure kill header in KillRequest proto (envoyproxy#14288) ... Signed-off-by: Michael Puncel <[email protected]>
This should be ready for review, though docs and release notes are still needed. Feedback on all fronts welcome.
Commit Message: tracing: Add hostname to Zipkin config
Additional Description:
Risk Level: low (new configuration, default behavior preserved)
Testing: unit (expanded an existing test)
Docs Changes: API protos documented, in line with existing fields
Release Notes: tracing: added support for setting the hostname used when sending spans to a Zipkin collector using the :ref:
collector_hostname <envoy_v3_api_field_config.trace.v3.ZipkinConfig.collector_hostname>
field.Fixes #14186