Documentation
¶
Index ¶
- Constants
- func New() func(ctx context.Context, req *http.Request) tracing.Tracing
- func ProjectId() string
- func Setup(opt ...tracelog.Option)
- func TracerProviderOptions(ctx context.Context, attrs ...attribute.KeyValue) ([]sdktrace.TracerProviderOption, error)
- func WithExporter(projectId string) tracing.TracerProviderOption
- func WithResource(attrs ...attribute.KeyValue) tracing.TracerProviderOption
- func WithServiceName(name string) tracing.KeyValueOption
- func WithVersion(version string) tracing.KeyValueOption
- type LogEntryOperation
- type TracingContext
Constants ¶
View Source
const ( Operation = "logging.googleapis.com/operation" SpanId = "logging.googleapis.com/spanId" Id = "logging.googleapis.com/trace" Sampled = "logging.googleapis.com/trace_sampled" )
Variables ¶
This section is empty.
Functions ¶
func TracerProviderOptions ¶
func TracerProviderOptions(ctx context.Context, attrs ...attribute.KeyValue) ([]sdktrace.TracerProviderOption, error)
TracerProviderOptions returns a slice of TracerProviderOption for configuring the OpenTelemetry TracerProvider. Deprecated: use tracing.TracerProviderOptions instead.
func WithExporter ¶ added in v0.0.5
func WithExporter(projectId string) tracing.TracerProviderOption
func WithResource ¶ added in v0.0.5
func WithResource(attrs ...attribute.KeyValue) tracing.TracerProviderOption
func WithServiceName ¶
func WithServiceName(name string) tracing.KeyValueOption
func WithVersion ¶
func WithVersion(version string) tracing.KeyValueOption
Types ¶
type LogEntryOperation ¶ added in v0.1.0
type LogEntryOperation struct {
Id string `json:"id"`
Producer string `json:"producer,omitempty"`
First *bool `json:"first,omitempty"`
Last *bool `json:"last,omitempty"`
}
func (LogEntryOperation) MarshalZerologObject ¶ added in v0.1.0
func (o LogEntryOperation) MarshalZerologObject(e *zerolog.Event)
Click to show internal directories.
Click to hide internal directories.