otlm

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package otlm supports to provide Tracer using OpenTelemetry.

Index

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 (o *OpenTelemetryProvider) CustomSpan(c context.Context, label string) (context.Context, func())

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

func (*OpenTelemetryProvider) StartSpan

func (o *OpenTelemetryProvider) StartSpan(request *http.Request, path string) (context.Context, func())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL