OpenTelemetry C++
v1.1.1

OpenTelemetry C++ API

  • OpenTelemetry C++ API

OpenTelemetry C++ SDK

  • OpenTelemetry C++ SDK

Reference Documentation

  • Reference documentation

Reference Documentation (API)

  • Namespace opentelemetry::trace
  • Namespace opentelemetry::baggage
  • Namespace opentelemetry::common
  • Namespace opentelemetry::context

Reference Documentation (SDK)

  • Namespace opentelemetry::sdk::trace
  • Namespace opentelemetry::sdk::instrumentationlibrary
  • Namespace opentelemetry::sdk::resource

Further Reading

  • Source code
  • Getting help
OpenTelemetry C++
  • »
  • Reference documentation »
  • Class SpanDataLink
  • Edit on GitHub

Class SpanDataLink

  • Defined in File span_data.h

Class Documentation

class opentelemetry::sdk::trace::SpanDataLink

Class for storing links in SpanData.

Public Functions

inline SpanDataLink(opentelemetry::trace::SpanContext span_context, const opentelemetry::common::KeyValueIterable &attributes)
inline const std::unordered_map<std::string, common::OwnedAttributeValue> &GetAttributes() const noexcept

Get the attributes for this link

Returns

the attributes for this link

inline const opentelemetry::trace::SpanContext &GetSpanContext() const noexcept

Get the span context for this link

Returns

the span context for this link

Previous Next

© Copyright 2021, OpenTelemetry authors. Revision 48033107.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: v1.1.1
Versions
latest
stable
v1.1.1
v1.1.0
v1.0.1
v1.0.0
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
Downloads
On Read the Docs
Project Home
Builds