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

tracing: If parent span is propagated with empty string, it causes th… #6263

Merged
merged 2 commits into from
Mar 12, 2019

Conversation

objectiser
Copy link
Contributor

…e next child span to not be created (i.e. returns null span)

Signed-off-by: Gary Brown gary@brownuk.com

Description:
Found an issue in Istio where if a service forwards an empty parent span id header, it results in the subsequent envoy proxy not creating a span for the outbound request, simply propagating the B3 headers to the next proxy handling the inbound request, which similarly has a problem creating a child span due to the same empty parent span id, etc.

See istio/istio#11696 for more information.

Risk Level: Low
Testing: Unit test to confirm span created even with empty parent span id.
Docs Changes: no
Release Notes: no
[Optional Fixes #Issue]
[Optional Deprecated:]

…e next child span to not be created (i.e. returns null span)

Signed-off-by: Gary Brown <gary@brownuk.com>
Signed-off-by: Gary Brown <gary@brownuk.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mattklein123 mattklein123 merged commit 8912fa3 into envoyproxy:master Mar 12, 2019
@objectiser objectiser deleted the ignoreemptyparentspan branch March 12, 2019 15:39
spenceral added a commit to spenceral/envoy that referenced this pull request Mar 20, 2019
* master: (59 commits)
  http fault: add response rate limit injection (envoyproxy#6267)
  xds: introduce initial_fetch_timeout option to limit initialization time (envoyproxy#6048)
  test: fix cpuset-threads tests (envoyproxy#6278)
  server: add an API for registering for notifications for server instance life… (envoyproxy#6254)
  remove remains of TestBase (envoyproxy#6286)
  dubbo_proxy: Implement the routing of Dubbo requests (envoyproxy#5973)
  Revert "stats: add new BoolIndicator stat type (envoyproxy#5813)" (envoyproxy#6280)
  runtime: codifying runtime guarded features (envoyproxy#6134)
  mysql_filter: fix integration test flakes (envoyproxy#6272)
  tls: update BoringSSL to debed9a4 (3683). (envoyproxy#6273)
  rewrite buffer implementation to eliminate evbuffer dependency (envoyproxy#5441)
  Remove the dependency from TimeSystem to libevent by using the Event::Scheduler abstraction as a delegate. (envoyproxy#6240)
  fuzz: fix use of literal in default initialization. (envoyproxy#6268)
  http: add HCM functionality required for rate limiting (envoyproxy#6242)
  Disable mysql_integration_test until it is deflaked. (envoyproxy#6250)
  test: use ipv6_only IPv6 addresses in custom cluster integration tests. (envoyproxy#6260)
  tracing: If parent span is propagated with empty string, it causes th… (envoyproxy#6263)
  upstream: fix oss-fuzz issue envoyproxy#11095. (envoyproxy#6220)
  Wire up panic mode subset to receive updates (envoyproxy#6221)
  docs: clarify xds docs with warming information (envoyproxy#6236)
  ...
duderino pushed a commit to istio/proxy that referenced this pull request Mar 22, 2019
* Update API and import envoyproxy/envoy#6263

* Update istio/api
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.

None yet

2 participants