AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
Public Member Functions | List of all members
smithy::components::tracing::OtelTracerAdapter Class Referencefinal

#include <TraceAdapters.h>

Inheritance diagram for smithy::components::tracing::OtelTracerAdapter:
[legend]

Public Member Functions

 OtelTracerAdapter (opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > tracer)
 
std::shared_ptr< TraceSpanCreateSpan (Aws::String name, const Aws::Map< Aws::String, Aws::String > &attributes, SpanKind spanKind) override
 

Public Member Functions inherited from smithy::components::tracing::Tracer

virtual ~Tracer ()=default
 

Detailed Description

A Open Telemetry Implementation of Tracer.

Definition at line 49 of file TraceAdapters.h.

Constructor & Destructor Documentation

◆ OtelTracerAdapter()

smithy::components::tracing::OtelTracerAdapter::OtelTracerAdapter ( opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer >  tracer)
inlineexplicit

Definition at line 51 of file TraceAdapters.h.

Member Function Documentation

◆ CreateSpan()

std::shared_ptr< TraceSpan > smithy::components::tracing::OtelTracerAdapter::CreateSpan ( Aws::String  name,
const Aws::Map< Aws::String, Aws::String > &  attributes,
SpanKind  spanKind 
)
overridevirtual

Creates a span.

Parameters
nameName of the span.
attributesthe attributes or dimensions associate with this measurement.
spanKindThe kind of the span.
Returns
A instance of a span.

Implements smithy::components::tracing::Tracer.


The documentation for this class was generated from the following file: