Documentation ¶
Overview ¶
Package otlm supports to provide Tracer using OpenTelemetry.
Index ¶
- type OpenTelemetryProvider
- func (o *OpenTelemetryProvider) CustomSpan(c context.Context, label string) (context.Context, func())
- func (o *OpenTelemetryProvider) GetSpan(ctx context.Context) *model.Span
- func (o *OpenTelemetryProvider) LocalMode()
- func (o *OpenTelemetryProvider) ProjectID() string
- func (o *OpenTelemetryProvider) StartSpan(request *http.Request, path string) (context.Context, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenTelemetryProvider ¶
type OpenTelemetryProvider struct {
// contains filtered or unexported fields
}
OpenTelemetryProvider implements Provider interface that provide OpenTelemetry Tracer.
func Create ¶
func Create(traceName string, projectId string) *OpenTelemetryProvider
Create a OpenTelemetryProvider.
func (*OpenTelemetryProvider) CustomSpan ¶
func (*OpenTelemetryProvider) GetSpan ¶
func (o *OpenTelemetryProvider) GetSpan(ctx context.Context) *model.Span
func (*OpenTelemetryProvider) LocalMode ¶
func (o *OpenTelemetryProvider) LocalMode()
func (*OpenTelemetryProvider) ProjectID ¶
func (o *OpenTelemetryProvider) ProjectID() string
Click to show internal directories.
Click to hide internal directories.