json_v1

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 7 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDFromString

func IDFromString(s string) (string, error)

IDFromString validates the ID and returns it in hexadecimal format.

func TraceIDFromString

func TraceIDFromString(s string) (string, error)

TraceIDFromString creates a TraceID from a hexadecimal string

Types

type JSON

type JSON struct{}

JSON decodes spans from bodies `POST`ed to the spans endpoint

func (*JSON) Decode

func (j *JSON) Decode(octets []byte) ([]codec.Span, error)

Decode unmarshals and validates the JSON body

Jump to

Keyboard shortcuts

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