Skip to content

Add tracing passthrough for bindings #5049

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

Merged
merged 5 commits into from
Aug 30, 2022
Merged

Conversation

halspang
Copy link
Contributor

Description

This commit allows an incoming binding event to specify
its traceparent. This lets requests get tracked over an
input binding.

#4884

Signed-off-by: Hal Spang halspang@microsoft.com

Issue reference

Please reference the issue this PR will close: #4884

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

@halspang halspang requested review from a team as code owners August 19, 2022 19:53
@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #5049 (b3eb416) into master (25f74fd) will decrease coverage by 0.01%.
The diff coverage is 54.05%.

❗ Current head b3eb416 differs from pull request most recent head ab9da92. Consider uploading reports for the commit ab9da92 to get more accurate results

@@            Coverage Diff             @@
##           master    #5049      +/-   ##
==========================================
- Coverage   65.44%   65.42%   -0.02%     
==========================================
  Files         114      113       -1     
  Lines       12737    12747      +10     
==========================================
+ Hits         8336     8340       +4     
- Misses       3816     3821       +5     
- Partials      585      586       +1     
Impacted Files Coverage Δ
pkg/diagnostics/grpc_tracing.go 65.33% <33.33%> (ø)
pkg/runtime/runtime.go 67.33% <36.84%> (-0.30%) ⬇️
pkg/diagnostics/http_tracing.go 93.07% <87.50%> (+0.16%) ⬆️
pkg/grpc/api.go 72.99% <100.00%> (+0.08%) ⬆️
pkg/diagnostics/service_monitoring.go 49.23% <0.00%> (ø)
pkg/runtime/initError.go

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

This commit allows an incoming binding event to specify
its traceparent. This lets requests get tracked over an
input binding.

dapr#4884

Signed-off-by: Hal Spang <halspang@microsoft.com>
@artursouza artursouza merged commit a6153bb into dapr:master Aug 30, 2022
Taction added a commit to Taction/dapr that referenced this pull request Sep 5, 2022
* master: (134 commits)
  Record metric for service updates (dapr#5114)
  chore: remove duplicate word in comments (dapr#5099)
  Run e2e tests in previous version of K8s on AKS to see if it's breaking Windows tests (dapr#5104)
  add {namespace} option to set consumerID
  Add tracing passthrough for bindings (dapr#5049)
  Improve component init error logs and metrics (dapr#4975)
  Improvements to E2E test apps (dapr#5042)
  Fix component name for aws dynamodb (dapr#5095)
  Fix perf tests not building (dapr#5096)
  Fix missing components in Metadata API result. (dapr#5052)
  Fixed log message (dapr#5088)
  Disable IPFS binding for now (dapr#5092)
  optimize/concurrency: pubsub concurrency map writes in runtime unit test. (dapr#5086)
  Configuration API response to use dictionaries - based on PR dapr#4695 (dapr#5083)
  correct compile error
  correct checking for actors with same id
  fix type error in print
  fix typo
  add log when actor start time and end time is not expected
  Components auto-registration (dapr#5062)
  ...

Signed-off-by: zhangchao <zchao9100@gmail.com>

# Conflicts:
#	go.mod
#	pkg/grpc/api.go
#	pkg/grpc/api_test.go
#	pkg/http/api.go
#	pkg/runtime/runtime.go
@berndverst
Copy link
Member

FYI this broke the Azure Storage Binding certification test.

We need to sanitize the gRPC specific headers by using this function

reservedGRPCMetadataToDaprPrefixHeader which can be found in pkg/v1/messaging/util.go

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.

W3C tracing for bindings
4 participants