forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply set-id patch to vendored dependency
We know this is ugly, but there is currently no other way see knative/eventing#2052
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This patch is directly copied from https://github.com/knative/eventing/blob/master/hack/set-span-id.patch and was originally introduced in PR-1972 | ||
There is currently an open issue to remove this patch again: https://github.com/knative/eventing/issues/2052 | ||
|
||
diff --git a/vendor/go.opencensus.io/trace/trace.go b/vendor/go.opencensus.io/trace/trace.go | ||
index 38ead7bf..9e6fe483 100644 | ||
--- a/components/event-sources/vendor/go.opencensus.io/trace/trace.go | ||
+++ b/components/event-sources/vendor/go.opencensus.io/trace/trace.go | ||
@@ -261,6 +261,11 @@ func startSpanInternal(name string, hasParent bool, parent SpanContext, remotePa | ||
return span | ||
} | ||
|
||
+func (s *Span) SetSpanID(spanID SpanID) { | ||
+ s.data.SpanID = spanID | ||
+ s.spanContext.SpanID = spanID | ||
+} | ||
+ | ||
// End ends the span. | ||
func (s *Span) End() { | ||
if s == nil { |