We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b972eb commit 1d50bf0Copy full SHA for 1d50bf0
sentry_sdk/hub.py
@@ -717,6 +717,19 @@ def iter_trace_propagation_headers(self, span=None):
717
for header in span.iter_headers():
718
yield header
719
720
+ def trace_propagation_meta(self, span=None):
721
+ # type: (Optional[Span]) -> str
722
+ """
723
+ Return meta tags which should be injected into the HTML template
724
+ to allow propagation of trace data.
725
726
+ meta = ""
727
+
728
+ for name, content in self.iter_trace_propagation_headers(span):
729
+ meta += '<meta name="%s" content="%s">' % (name, content)
730
731
+ return meta
732
733
734
GLOBAL_HUB = Hub()
735
_local.set(GLOBAL_HUB)
0 commit comments