Movatterモバイル変換


[0]ホーム

URL:


tracecontext

package
v0.123.0Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License:Apache-2.0Imports:1Imported by:0

Details

Repository

github.com/googleapis/google-cloud-go

Links

Documentation

Overview

Package tracecontext provides encoders and decoders for Stackdriver Trace contexts.

Index

Constants

View Source
const (// Len represents the length of trace context.Len = 1 + 1 + traceIDLen + 1 + spanIDLen + 1 + optsLen)

Variables

This section is empty.

Functions

funcDecode

func Decode(src []byte) (traceID []byte, spanIDuint64, optsbyte, okbool)

Decode decodes the src into a trace ID, span ID and options. If src doesn'tcontain a valid trace context, ok = false is returned.

funcEncode

func Encode(dst []byte, traceID []byte, spanIDuint64, optsbyte) (nint)

Encode encodes trace ID, span ID and options into dst. The number of byteswritten will be returned. If len(dst) isn't big enough to fit the trace context,a negative number is returned.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp