Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AnyValue
- func NewArrayValueAnyValue(v ArrayValue) AnyValue
- func NewBoolValueAnyValue(v BoolValue) AnyValue
- func NewBytesValueAnyValue(v BytesValue) AnyValue
- func NewDoubleValueAnyValue(v DoubleValue) AnyValue
- func NewIntValueAnyValue(v IntValue) AnyValue
- func NewKvlistValueAnyValue(v KvlistValue) AnyValue
- func NewStringValueAnyValue(v StringValue) AnyValue
- func (s *AnyValue) Decode(d *jx.Decoder) error
- func (s AnyValue) Encode(e *jx.Encoder)
- func (s AnyValue) GetArrayValue() (v ArrayValue, ok bool)
- func (s AnyValue) GetBoolValue() (v BoolValue, ok bool)
- func (s AnyValue) GetBytesValue() (v BytesValue, ok bool)
- func (s AnyValue) GetDoubleValue() (v DoubleValue, ok bool)
- func (s AnyValue) GetIntValue() (v IntValue, ok bool)
- func (s AnyValue) GetKvlistValue() (v KvlistValue, ok bool)
- func (s AnyValue) GetStringValue() (v StringValue, ok bool)
- func (s AnyValue) IsArrayValue() bool
- func (s AnyValue) IsBoolValue() bool
- func (s AnyValue) IsBytesValue() bool
- func (s AnyValue) IsDoubleValue() bool
- func (s AnyValue) IsIntValue() bool
- func (s AnyValue) IsKvlistValue() bool
- func (s AnyValue) IsStringValue() bool
- func (s AnyValue) MarshalJSON() ([]byte, error)
- func (s *AnyValue) SetArrayValue(v ArrayValue)
- func (s *AnyValue) SetBoolValue(v BoolValue)
- func (s *AnyValue) SetBytesValue(v BytesValue)
- func (s *AnyValue) SetDoubleValue(v DoubleValue)
- func (s *AnyValue) SetFake()
- func (s *AnyValue) SetIntValue(v IntValue)
- func (s *AnyValue) SetKvlistValue(v KvlistValue)
- func (s *AnyValue) SetStringValue(v StringValue)
- func (s *AnyValue) UnmarshalJSON(data []byte) error
- func (s AnyValue) Validate() error
- type AnyValueType
- type ArrayValue
- func (s *ArrayValue) Decode(d *jx.Decoder) error
- func (s *ArrayValue) Encode(e *jx.Encoder)
- func (s *ArrayValue) GetArrayValue() []AnyValue
- func (s *ArrayValue) MarshalJSON() ([]byte, error)
- func (s *ArrayValue) SetArrayValue(val []AnyValue)
- func (s *ArrayValue) SetFake()
- func (s *ArrayValue) UnmarshalJSON(data []byte) error
- func (s *ArrayValue) Validate() error
- type Attributes
- type BoolValue
- func (s *BoolValue) Decode(d *jx.Decoder) error
- func (s *BoolValue) Encode(e *jx.Encoder)
- func (s *BoolValue) GetBoolValue() bool
- func (s *BoolValue) MarshalJSON() ([]byte, error)
- func (s *BoolValue) SetBoolValue(val bool)
- func (s *BoolValue) SetFake()
- func (s *BoolValue) UnmarshalJSON(data []byte) error
- type BytesValue
- func (s *BytesValue) Decode(d *jx.Decoder) error
- func (s *BytesValue) Encode(e *jx.Encoder)
- func (s *BytesValue) GetBytesValue() []byte
- func (s *BytesValue) MarshalJSON() ([]byte, error)
- func (s *BytesValue) SetBytesValue(val []byte)
- func (s *BytesValue) SetFake()
- func (s *BytesValue) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) Echo(ctx context.Context) (EchoOK, error)
- func (c *Client) Search(ctx context.Context, params SearchParams) (*Traces, error)
- func (c *Client) SearchTagValues(ctx context.Context, params SearchTagValuesParams) (*TagValues, error)
- func (c *Client) SearchTagValuesV2(ctx context.Context, params SearchTagValuesV2Params) (*TagValuesV2, error)
- func (c *Client) SearchTags(ctx context.Context) (*TagNames, error)
- func (c *Client) TraceByID(ctx context.Context, params TraceByIDParams) (TraceByIDRes, error)
- type ClientOption
- type DoubleValue
- func (s *DoubleValue) Decode(d *jx.Decoder) error
- func (s *DoubleValue) Encode(e *jx.Encoder)
- func (s *DoubleValue) GetDoubleValue() float64
- func (s *DoubleValue) MarshalJSON() ([]byte, error)
- func (s *DoubleValue) SetDoubleValue(val float64)
- func (s *DoubleValue) SetFake()
- func (s *DoubleValue) UnmarshalJSON(data []byte) error
- func (s *DoubleValue) Validate() error
- type EchoOK
- type Error
- type ErrorHandler
- type ErrorStatusCode
- type Handler
- type IntValue
- type KeyValue
- func (s *KeyValue) Decode(d *jx.Decoder) error
- func (s *KeyValue) Encode(e *jx.Encoder)
- func (s *KeyValue) GetKey() string
- func (s *KeyValue) GetValue() AnyValue
- func (s *KeyValue) MarshalJSON() ([]byte, error)
- func (s *KeyValue) SetFake()
- func (s *KeyValue) SetKey(val string)
- func (s *KeyValue) SetValue(val AnyValue)
- func (s *KeyValue) UnmarshalJSON(data []byte) error
- func (s *KeyValue) Validate() error
- type KvlistValue
- func (s *KvlistValue) Decode(d *jx.Decoder) error
- func (s *KvlistValue) Encode(e *jx.Encoder)
- func (s *KvlistValue) GetKvlistValue() []KeyValue
- func (s *KvlistValue) MarshalJSON() ([]byte, error)
- func (s *KvlistValue) SetFake()
- func (s *KvlistValue) SetKvlistValue(val []KeyValue)
- func (s *KvlistValue) UnmarshalJSON(data []byte) error
- func (s *KvlistValue) Validate() error
- type Middleware
- type OptDuration
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (s *OptInt) SetFake()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (s *OptString) SetFake()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptTempoSpanSet
- func (o *OptTempoSpanSet) Decode(d *jx.Decoder) error
- func (o OptTempoSpanSet) Encode(e *jx.Encoder)
- func (o OptTempoSpanSet) Get() (v TempoSpanSet, ok bool)
- func (o OptTempoSpanSet) IsSet() bool
- func (s OptTempoSpanSet) MarshalJSON() ([]byte, error)
- func (o OptTempoSpanSet) Or(d TempoSpanSet) TempoSpanSet
- func (o *OptTempoSpanSet) Reset()
- func (s *OptTempoSpanSet) SetFake()
- func (o *OptTempoSpanSet) SetTo(v TempoSpanSet)
- func (s *OptTempoSpanSet) UnmarshalJSON(data []byte) error
- type OptUnixSeconds
- type Option
- type Route
- type SearchParams
- type SearchTagValuesParams
- type SearchTagValuesV2Params
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type StringValue
- func (s *StringValue) Decode(d *jx.Decoder) error
- func (s *StringValue) Encode(e *jx.Encoder)
- func (s *StringValue) GetStringValue() string
- func (s *StringValue) MarshalJSON() ([]byte, error)
- func (s *StringValue) SetFake()
- func (s *StringValue) SetStringValue(val string)
- func (s *StringValue) UnmarshalJSON(data []byte) error
- type TagNames
- func (s *TagNames) Decode(d *jx.Decoder) error
- func (s *TagNames) Encode(e *jx.Encoder)
- func (s *TagNames) GetTagNames() []string
- func (s *TagNames) MarshalJSON() ([]byte, error)
- func (s *TagNames) SetFake()
- func (s *TagNames) SetTagNames(val []string)
- func (s *TagNames) UnmarshalJSON(data []byte) error
- type TagValue
- func (s *TagValue) Decode(d *jx.Decoder) error
- func (s *TagValue) Encode(e *jx.Encoder)
- func (s *TagValue) GetType() string
- func (s *TagValue) GetValue() string
- func (s *TagValue) MarshalJSON() ([]byte, error)
- func (s *TagValue) SetFake()
- func (s *TagValue) SetType(val string)
- func (s *TagValue) SetValue(val string)
- func (s *TagValue) UnmarshalJSON(data []byte) error
- type TagValues
- func (s *TagValues) Decode(d *jx.Decoder) error
- func (s *TagValues) Encode(e *jx.Encoder)
- func (s *TagValues) GetTagValues() []string
- func (s *TagValues) MarshalJSON() ([]byte, error)
- func (s *TagValues) SetFake()
- func (s *TagValues) SetTagValues(val []string)
- func (s *TagValues) UnmarshalJSON(data []byte) error
- type TagValuesV2
- func (s *TagValuesV2) Decode(d *jx.Decoder) error
- func (s *TagValuesV2) Encode(e *jx.Encoder)
- func (s *TagValuesV2) GetTagValues() []TagValue
- func (s *TagValuesV2) MarshalJSON() ([]byte, error)
- func (s *TagValuesV2) SetFake()
- func (s *TagValuesV2) SetTagValues(val []TagValue)
- func (s *TagValuesV2) UnmarshalJSON(data []byte) error
- type TempoSpan
- func (s *TempoSpan) Decode(d *jx.Decoder) error
- func (s *TempoSpan) Encode(e *jx.Encoder)
- func (s *TempoSpan) GetAttributes() *Attributes
- func (s *TempoSpan) GetDurationNanos() int64
- func (s *TempoSpan) GetName() OptString
- func (s *TempoSpan) GetSpanID() string
- func (s *TempoSpan) GetStartTimeUnixNano() time.Time
- func (s *TempoSpan) MarshalJSON() ([]byte, error)
- func (s *TempoSpan) SetAttributes(val *Attributes)
- func (s *TempoSpan) SetDurationNanos(val int64)
- func (s *TempoSpan) SetFake()
- func (s *TempoSpan) SetName(val OptString)
- func (s *TempoSpan) SetSpanID(val string)
- func (s *TempoSpan) SetStartTimeUnixNano(val time.Time)
- func (s *TempoSpan) UnmarshalJSON(data []byte) error
- func (s *TempoSpan) Validate() error
- type TempoSpanSet
- func (s *TempoSpanSet) Decode(d *jx.Decoder) error
- func (s *TempoSpanSet) Encode(e *jx.Encoder)
- func (s *TempoSpanSet) GetAttributes() *Attributes
- func (s *TempoSpanSet) GetMatched() OptInt
- func (s *TempoSpanSet) GetSpans() []TempoSpan
- func (s *TempoSpanSet) MarshalJSON() ([]byte, error)
- func (s *TempoSpanSet) SetAttributes(val *Attributes)
- func (s *TempoSpanSet) SetFake()
- func (s *TempoSpanSet) SetMatched(val OptInt)
- func (s *TempoSpanSet) SetSpans(val []TempoSpan)
- func (s *TempoSpanSet) UnmarshalJSON(data []byte) error
- func (s *TempoSpanSet) Validate() error
- type TraceByID
- type TraceByIDNotFound
- type TraceByIDParams
- type TraceByIDRes
- type TraceSearchMetadata
- func (s *TraceSearchMetadata) Decode(d *jx.Decoder) error
- func (s *TraceSearchMetadata) Encode(e *jx.Encoder)
- func (s *TraceSearchMetadata) GetDurationMs() OptInt
- func (s *TraceSearchMetadata) GetRootServiceName() OptString
- func (s *TraceSearchMetadata) GetRootTraceName() OptString
- func (s *TraceSearchMetadata) GetSpanSet() OptTempoSpanSet
- func (s *TraceSearchMetadata) GetStartTimeUnixNano() time.Time
- func (s *TraceSearchMetadata) GetTraceID() string
- func (s *TraceSearchMetadata) MarshalJSON() ([]byte, error)
- func (s *TraceSearchMetadata) SetDurationMs(val OptInt)
- func (s *TraceSearchMetadata) SetFake()
- func (s *TraceSearchMetadata) SetRootServiceName(val OptString)
- func (s *TraceSearchMetadata) SetRootTraceName(val OptString)
- func (s *TraceSearchMetadata) SetSpanSet(val OptTempoSpanSet)
- func (s *TraceSearchMetadata) SetStartTimeUnixNano(val time.Time)
- func (s *TraceSearchMetadata) SetTraceID(val string)
- func (s *TraceSearchMetadata) UnmarshalJSON(data []byte) error
- func (s *TraceSearchMetadata) Validate() error
- type Traces
- func (s *Traces) Decode(d *jx.Decoder) error
- func (s *Traces) Encode(e *jx.Encoder)
- func (s *Traces) GetTraces() []TraceSearchMetadata
- func (s *Traces) MarshalJSON() ([]byte, error)
- func (s *Traces) SetFake()
- func (s *Traces) SetTraces(val []TraceSearchMetadata)
- func (s *Traces) UnmarshalJSON(data []byte) error
- func (s *Traces) Validate() error
- type UnimplementedHandler
- func (UnimplementedHandler) Echo(ctx context.Context) (r EchoOK, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) Search(ctx context.Context, params SearchParams) (r *Traces, _ error)
- func (UnimplementedHandler) SearchTagValues(ctx context.Context, params SearchTagValuesParams) (r *TagValues, _ error)
- func (UnimplementedHandler) SearchTagValuesV2(ctx context.Context, params SearchTagValuesV2Params) (r *TagValuesV2, _ error)
- func (UnimplementedHandler) SearchTags(ctx context.Context) (r *TagNames, _ error)
- func (UnimplementedHandler) TraceByID(ctx context.Context, params TraceByIDParams) (r TraceByIDRes, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnyValue ¶
type AnyValue struct { Type AnyValueType // switch on this field StringValue StringValue BoolValue BoolValue IntValue IntValue DoubleValue DoubleValue ArrayValue ArrayValue KvlistValue KvlistValue BytesValue BytesValue }
Ref: #/components/schemas/AnyValue AnyValue represents sum type.
func NewArrayValueAnyValue ¶
func NewArrayValueAnyValue(v ArrayValue) AnyValue
NewArrayValueAnyValue returns new AnyValue from ArrayValue.
func NewBoolValueAnyValue ¶
NewBoolValueAnyValue returns new AnyValue from BoolValue.
func NewBytesValueAnyValue ¶
func NewBytesValueAnyValue(v BytesValue) AnyValue
NewBytesValueAnyValue returns new AnyValue from BytesValue.
func NewDoubleValueAnyValue ¶
func NewDoubleValueAnyValue(v DoubleValue) AnyValue
NewDoubleValueAnyValue returns new AnyValue from DoubleValue.
func NewIntValueAnyValue ¶
NewIntValueAnyValue returns new AnyValue from IntValue.
func NewKvlistValueAnyValue ¶
func NewKvlistValueAnyValue(v KvlistValue) AnyValue
NewKvlistValueAnyValue returns new AnyValue from KvlistValue.
func NewStringValueAnyValue ¶
func NewStringValueAnyValue(v StringValue) AnyValue
NewStringValueAnyValue returns new AnyValue from StringValue.
func (AnyValue) GetArrayValue ¶
func (s AnyValue) GetArrayValue() (v ArrayValue, ok bool)
GetArrayValue returns ArrayValue and true boolean if AnyValue is ArrayValue.
func (AnyValue) GetBoolValue ¶
GetBoolValue returns BoolValue and true boolean if AnyValue is BoolValue.
func (AnyValue) GetBytesValue ¶
func (s AnyValue) GetBytesValue() (v BytesValue, ok bool)
GetBytesValue returns BytesValue and true boolean if AnyValue is BytesValue.
func (AnyValue) GetDoubleValue ¶
func (s AnyValue) GetDoubleValue() (v DoubleValue, ok bool)
GetDoubleValue returns DoubleValue and true boolean if AnyValue is DoubleValue.
func (AnyValue) GetIntValue ¶
GetIntValue returns IntValue and true boolean if AnyValue is IntValue.
func (AnyValue) GetKvlistValue ¶
func (s AnyValue) GetKvlistValue() (v KvlistValue, ok bool)
GetKvlistValue returns KvlistValue and true boolean if AnyValue is KvlistValue.
func (AnyValue) GetStringValue ¶
func (s AnyValue) GetStringValue() (v StringValue, ok bool)
GetStringValue returns StringValue and true boolean if AnyValue is StringValue.
func (AnyValue) IsArrayValue ¶
IsArrayValue reports whether AnyValue is ArrayValue.
func (AnyValue) IsBoolValue ¶
IsBoolValue reports whether AnyValue is BoolValue.
func (AnyValue) IsBytesValue ¶
IsBytesValue reports whether AnyValue is BytesValue.
func (AnyValue) IsDoubleValue ¶
IsDoubleValue reports whether AnyValue is DoubleValue.
func (AnyValue) IsIntValue ¶
IsIntValue reports whether AnyValue is IntValue.
func (AnyValue) IsKvlistValue ¶
IsKvlistValue reports whether AnyValue is KvlistValue.
func (AnyValue) IsStringValue ¶
IsStringValue reports whether AnyValue is StringValue.
func (AnyValue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AnyValue) SetArrayValue ¶
func (s *AnyValue) SetArrayValue(v ArrayValue)
SetArrayValue sets AnyValue to ArrayValue.
func (*AnyValue) SetBoolValue ¶
SetBoolValue sets AnyValue to BoolValue.
func (*AnyValue) SetBytesValue ¶
func (s *AnyValue) SetBytesValue(v BytesValue)
SetBytesValue sets AnyValue to BytesValue.
func (*AnyValue) SetDoubleValue ¶
func (s *AnyValue) SetDoubleValue(v DoubleValue)
SetDoubleValue sets AnyValue to DoubleValue.
func (*AnyValue) SetIntValue ¶
SetIntValue sets AnyValue to IntValue.
func (*AnyValue) SetKvlistValue ¶
func (s *AnyValue) SetKvlistValue(v KvlistValue)
SetKvlistValue sets AnyValue to KvlistValue.
func (*AnyValue) SetStringValue ¶
func (s *AnyValue) SetStringValue(v StringValue)
SetStringValue sets AnyValue to StringValue.
func (*AnyValue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AnyValueType ¶
type AnyValueType string
AnyValueType is oneOf type of AnyValue.
const ( StringValueAnyValue AnyValueType = "StringValue" BoolValueAnyValue AnyValueType = "BoolValue" IntValueAnyValue AnyValueType = "IntValue" DoubleValueAnyValue AnyValueType = "DoubleValue" ArrayValueAnyValue AnyValueType = "ArrayValue" KvlistValueAnyValue AnyValueType = "KvlistValue" BytesValueAnyValue AnyValueType = "BytesValue" )
Possible values for AnyValueType.
type ArrayValue ¶
type ArrayValue struct {
ArrayValue []AnyValue `json:"arrayValue"`
}
Ref: #/components/schemas/ArrayValue
func (*ArrayValue) Decode ¶
func (s *ArrayValue) Decode(d *jx.Decoder) error
Decode decodes ArrayValue from json.
func (*ArrayValue) Encode ¶
func (s *ArrayValue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ArrayValue) GetArrayValue ¶
func (s *ArrayValue) GetArrayValue() []AnyValue
GetArrayValue returns the value of ArrayValue.
func (*ArrayValue) MarshalJSON ¶
func (s *ArrayValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ArrayValue) SetArrayValue ¶
func (s *ArrayValue) SetArrayValue(val []AnyValue)
SetArrayValue sets the value of ArrayValue.
func (*ArrayValue) UnmarshalJSON ¶
func (s *ArrayValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ArrayValue) Validate ¶
func (s *ArrayValue) Validate() error
type Attributes ¶
type Attributes []KeyValue
func (*Attributes) Decode ¶
func (s *Attributes) Decode(d *jx.Decoder) error
Decode decodes Attributes from json.
func (Attributes) Encode ¶
func (s Attributes) Encode(e *jx.Encoder)
Encode encodes Attributes as json.
func (Attributes) MarshalJSON ¶
func (s Attributes) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Attributes) UnmarshalJSON ¶
func (s *Attributes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (Attributes) Validate ¶
func (s Attributes) Validate() error
type BoolValue ¶
type BoolValue struct {
BoolValue bool `json:"boolValue"`
}
Ref: #/components/schemas/BoolValue
func (*BoolValue) GetBoolValue ¶
GetBoolValue returns the value of BoolValue.
func (*BoolValue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*BoolValue) SetBoolValue ¶
SetBoolValue sets the value of BoolValue.
func (*BoolValue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type BytesValue ¶
type BytesValue struct {
BytesValue []byte `json:"bytesValue"`
}
Ref: #/components/schemas/BytesValue
func (*BytesValue) Decode ¶
func (s *BytesValue) Decode(d *jx.Decoder) error
Decode decodes BytesValue from json.
func (*BytesValue) Encode ¶
func (s *BytesValue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BytesValue) GetBytesValue ¶
func (s *BytesValue) GetBytesValue() []byte
GetBytesValue returns the value of BytesValue.
func (*BytesValue) MarshalJSON ¶
func (s *BytesValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BytesValue) SetBytesValue ¶
func (s *BytesValue) SetBytesValue(val []byte)
SetBytesValue sets the value of BytesValue.
func (*BytesValue) UnmarshalJSON ¶
func (s *BytesValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) Echo ¶
Echo invokes echo operation.
Echo request for testing, issued by Grafana.
GET /api/echo
func (*Client) SearchTagValues ¶
func (c *Client) SearchTagValues(ctx context.Context, params SearchTagValuesParams) (*TagValues, error)
SearchTagValues invokes searchTagValues operation.
This endpoint retrieves all discovered values for the given tag, which can be used in search.
GET /api/search/tag/{tag_name}/values
func (*Client) SearchTagValuesV2 ¶
func (c *Client) SearchTagValuesV2(ctx context.Context, params SearchTagValuesV2Params) (*TagValuesV2, error)
SearchTagValuesV2 invokes searchTagValuesV2 operation.
This endpoint retrieves all discovered values and their data types for the given TraceQL identifier.
GET /api/v2/search/tag/{tag_name}/values
func (*Client) SearchTags ¶
SearchTags invokes searchTags operation.
This endpoint retrieves all discovered tag names that can be used in search.
GET /api/search/tags
func (*Client) TraceByID ¶
func (c *Client) TraceByID(ctx context.Context, params TraceByIDParams) (TraceByIDRes, error)
TraceByID invokes traceByID operation.
Querying traces by id.
GET /api/traces/{traceID}
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type DoubleValue ¶
type DoubleValue struct {
DoubleValue float64 `json:"doubleValue"`
}
Ref: #/components/schemas/DoubleValue
func (*DoubleValue) Decode ¶
func (s *DoubleValue) Decode(d *jx.Decoder) error
Decode decodes DoubleValue from json.
func (*DoubleValue) Encode ¶
func (s *DoubleValue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DoubleValue) GetDoubleValue ¶
func (s *DoubleValue) GetDoubleValue() float64
GetDoubleValue returns the value of DoubleValue.
func (*DoubleValue) MarshalJSON ¶
func (s *DoubleValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DoubleValue) SetDoubleValue ¶
func (s *DoubleValue) SetDoubleValue(val float64)
SetDoubleValue sets the value of DoubleValue.
func (*DoubleValue) UnmarshalJSON ¶
func (s *DoubleValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*DoubleValue) Validate ¶
func (s *DoubleValue) Validate() error
type Error ¶
type Error string
func (Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Handler ¶
type Handler interface { // Echo implements echo operation. // // Echo request for testing, issued by Grafana. // // GET /api/echo Echo(ctx context.Context) (EchoOK, error) // Search implements search operation. // // Execute TraceQL query. // // GET /api/search Search(ctx context.Context, params SearchParams) (*Traces, error) // SearchTagValues implements searchTagValues operation. // // This endpoint retrieves all discovered values for the given tag, which can be used in search. // // GET /api/search/tag/{tag_name}/values SearchTagValues(ctx context.Context, params SearchTagValuesParams) (*TagValues, error) // SearchTagValuesV2 implements searchTagValuesV2 operation. // // This endpoint retrieves all discovered values and their data types for the given TraceQL // identifier. // // GET /api/v2/search/tag/{tag_name}/values SearchTagValuesV2(ctx context.Context, params SearchTagValuesV2Params) (*TagValuesV2, error) // SearchTags implements searchTags operation. // // This endpoint retrieves all discovered tag names that can be used in search. // // GET /api/search/tags SearchTags(ctx context.Context) (*TagNames, error) // TraceByID implements traceByID operation. // // Querying traces by id. // // GET /api/traces/{traceID} TraceByID(ctx context.Context, params TraceByIDParams) (TraceByIDRes, error) // NewError creates *ErrorStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) *ErrorStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type IntValue ¶
type IntValue struct {
IntValue int64 `json:"intValue"`
}
Ref: #/components/schemas/IntValue
func (*IntValue) GetIntValue ¶
GetIntValue returns the value of IntValue.
func (*IntValue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*IntValue) SetIntValue ¶
SetIntValue sets the value of IntValue.
func (*IntValue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type KeyValue ¶
Ref: #/components/schemas/KeyValue
func (*KeyValue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*KeyValue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type KvlistValue ¶
type KvlistValue struct {
KvlistValue []KeyValue `json:"kvlistValue"`
}
Ref: #/components/schemas/KvlistValue
func (*KvlistValue) Decode ¶
func (s *KvlistValue) Decode(d *jx.Decoder) error
Decode decodes KvlistValue from json.
func (*KvlistValue) Encode ¶
func (s *KvlistValue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*KvlistValue) GetKvlistValue ¶
func (s *KvlistValue) GetKvlistValue() []KeyValue
GetKvlistValue returns the value of KvlistValue.
func (*KvlistValue) MarshalJSON ¶
func (s *KvlistValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*KvlistValue) SetKvlistValue ¶
func (s *KvlistValue) SetKvlistValue(val []KeyValue)
SetKvlistValue sets the value of KvlistValue.
func (*KvlistValue) UnmarshalJSON ¶
func (s *KvlistValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*KvlistValue) Validate ¶
func (s *KvlistValue) Validate() error
type OptDuration ¶
OptDuration is optional time.Duration.
func NewOptDuration ¶
func NewOptDuration(v time.Duration) OptDuration
NewOptDuration returns new OptDuration with value set to v.
func (OptDuration) Get ¶
func (o OptDuration) Get() (v time.Duration, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDuration) IsSet ¶
func (o OptDuration) IsSet() bool
IsSet returns true if OptDuration was set.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptTempoSpanSet ¶
type OptTempoSpanSet struct { Value TempoSpanSet Set bool }
OptTempoSpanSet is optional TempoSpanSet.
func NewOptTempoSpanSet ¶
func NewOptTempoSpanSet(v TempoSpanSet) OptTempoSpanSet
NewOptTempoSpanSet returns new OptTempoSpanSet with value set to v.
func (*OptTempoSpanSet) Decode ¶
func (o *OptTempoSpanSet) Decode(d *jx.Decoder) error
Decode decodes TempoSpanSet from json.
func (OptTempoSpanSet) Encode ¶
func (o OptTempoSpanSet) Encode(e *jx.Encoder)
Encode encodes TempoSpanSet as json.
func (OptTempoSpanSet) Get ¶
func (o OptTempoSpanSet) Get() (v TempoSpanSet, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptTempoSpanSet) IsSet ¶
func (o OptTempoSpanSet) IsSet() bool
IsSet returns true if OptTempoSpanSet was set.
func (OptTempoSpanSet) MarshalJSON ¶
func (s OptTempoSpanSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptTempoSpanSet) Or ¶
func (o OptTempoSpanSet) Or(d TempoSpanSet) TempoSpanSet
Or returns value if set, or given parameter if does not.
func (*OptTempoSpanSet) SetTo ¶
func (o *OptTempoSpanSet) SetTo(v TempoSpanSet)
SetTo sets value to v.
func (*OptTempoSpanSet) UnmarshalJSON ¶
func (s *OptTempoSpanSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUnixSeconds ¶
OptUnixSeconds is optional time.Time.
func NewOptUnixSeconds ¶
func NewOptUnixSeconds(v time.Time) OptUnixSeconds
NewOptUnixSeconds returns new OptUnixSeconds with value set to v.
func (OptUnixSeconds) Get ¶
func (o OptUnixSeconds) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUnixSeconds) IsSet ¶
func (o OptUnixSeconds) IsSet() bool
IsSet returns true if OptUnixSeconds was set.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SearchParams ¶
type SearchParams struct { // URL-encoded TraceQL query. Q OptString // Logfmt encoding of any span-level or process-level attributes to filter on. // The value is matched as a case-insensitive substring. // Key-value pairs are separated by spaces. // If a value contains a space, it should be enclosed within double quotes. Tags OptString // Find traces with at least this duration. Duration values are of the form 10s for 10 seconds, 100ms, // 30m, etc. MinDuration OptDuration // Find traces with no greater than this duration. Uses the same form as `minDuration`. MaxDuration OptDuration // Limit the number of search results. Default is 20, but this is configurable in the querier. Refer // to Configuration. Limit OptInt // Along with `end` define a time range from which traces should be returned. Start OptUnixSeconds // Along with `start`, define a time range from which traces should be returned. // Providing both `start` and `end` will change the way that Tempo searches. // If the parameters are not provided, then Tempo will search the recent trace data stored in the // ingesters. // If the parameters are provided, it will search the backend as well. End OptUnixSeconds }
SearchParams is parameters of search operation.
type SearchTagValuesParams ¶
type SearchTagValuesParams struct { // Tag name. TagName string }
SearchTagValuesParams is parameters of searchTagValues operation.
type SearchTagValuesV2Params ¶
type SearchTagValuesV2Params struct { // Tag name. TagName string }
SearchTagValuesV2Params is parameters of searchTagValuesV2 operation.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type StringValue ¶
type StringValue struct {
StringValue string `json:"stringValue"`
}
Ref: #/components/schemas/StringValue
func (*StringValue) Decode ¶
func (s *StringValue) Decode(d *jx.Decoder) error
Decode decodes StringValue from json.
func (*StringValue) Encode ¶
func (s *StringValue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*StringValue) GetStringValue ¶
func (s *StringValue) GetStringValue() string
GetStringValue returns the value of StringValue.
func (*StringValue) MarshalJSON ¶
func (s *StringValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*StringValue) SetStringValue ¶
func (s *StringValue) SetStringValue(val string)
SetStringValue sets the value of StringValue.
func (*StringValue) UnmarshalJSON ¶
func (s *StringValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TagNames ¶
type TagNames struct {
TagNames []string `json:"tagNames"`
}
Ref: #/components/schemas/TagNames
func (*TagNames) GetTagNames ¶
GetTagNames returns the value of TagNames.
func (*TagNames) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TagNames) SetTagNames ¶
SetTagNames sets the value of TagNames.
func (*TagNames) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TagValue ¶
Ref: #/components/schemas/TagValue
func (*TagValue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TagValue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TagValues ¶
type TagValues struct {
TagValues []string `json:"tagValues"`
}
Ref: #/components/schemas/TagValues
func (*TagValues) GetTagValues ¶
GetTagValues returns the value of TagValues.
func (*TagValues) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TagValues) SetTagValues ¶
SetTagValues sets the value of TagValues.
func (*TagValues) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TagValuesV2 ¶
type TagValuesV2 struct {
TagValues []TagValue `json:"tagValues"`
}
Ref: #/components/schemas/TagValuesV2
func (*TagValuesV2) Decode ¶
func (s *TagValuesV2) Decode(d *jx.Decoder) error
Decode decodes TagValuesV2 from json.
func (*TagValuesV2) Encode ¶
func (s *TagValuesV2) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TagValuesV2) GetTagValues ¶
func (s *TagValuesV2) GetTagValues() []TagValue
GetTagValues returns the value of TagValues.
func (*TagValuesV2) MarshalJSON ¶
func (s *TagValuesV2) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TagValuesV2) SetTagValues ¶
func (s *TagValuesV2) SetTagValues(val []TagValue)
SetTagValues sets the value of TagValues.
func (*TagValuesV2) UnmarshalJSON ¶
func (s *TagValuesV2) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TempoSpan ¶
type TempoSpan struct { SpanID string `json:"spanID"` Name OptString `json:"name"` StartTimeUnixNano time.Time `json:"startTimeUnixNano"` DurationNanos int64 `json:"durationNanos"` Attributes *Attributes `json:"attributes"` }
Ref: #/components/schemas/TempoSpan
func (*TempoSpan) GetAttributes ¶
func (s *TempoSpan) GetAttributes() *Attributes
GetAttributes returns the value of Attributes.
func (*TempoSpan) GetDurationNanos ¶
GetDurationNanos returns the value of DurationNanos.
func (*TempoSpan) GetStartTimeUnixNano ¶
GetStartTimeUnixNano returns the value of StartTimeUnixNano.
func (*TempoSpan) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TempoSpan) SetAttributes ¶
func (s *TempoSpan) SetAttributes(val *Attributes)
SetAttributes sets the value of Attributes.
func (*TempoSpan) SetDurationNanos ¶
SetDurationNanos sets the value of DurationNanos.
func (*TempoSpan) SetStartTimeUnixNano ¶
SetStartTimeUnixNano sets the value of StartTimeUnixNano.
func (*TempoSpan) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TempoSpanSet ¶
type TempoSpanSet struct { Spans []TempoSpan `json:"spans"` Matched OptInt `json:"matched"` Attributes *Attributes `json:"attributes"` }
Ref: #/components/schemas/TempoSpanSet
func (*TempoSpanSet) Decode ¶
func (s *TempoSpanSet) Decode(d *jx.Decoder) error
Decode decodes TempoSpanSet from json.
func (*TempoSpanSet) Encode ¶
func (s *TempoSpanSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TempoSpanSet) GetAttributes ¶
func (s *TempoSpanSet) GetAttributes() *Attributes
GetAttributes returns the value of Attributes.
func (*TempoSpanSet) GetMatched ¶
func (s *TempoSpanSet) GetMatched() OptInt
GetMatched returns the value of Matched.
func (*TempoSpanSet) GetSpans ¶
func (s *TempoSpanSet) GetSpans() []TempoSpan
GetSpans returns the value of Spans.
func (*TempoSpanSet) MarshalJSON ¶
func (s *TempoSpanSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TempoSpanSet) SetAttributes ¶
func (s *TempoSpanSet) SetAttributes(val *Attributes)
SetAttributes sets the value of Attributes.
func (*TempoSpanSet) SetMatched ¶
func (s *TempoSpanSet) SetMatched(val OptInt)
SetMatched sets the value of Matched.
func (*TempoSpanSet) SetSpans ¶
func (s *TempoSpanSet) SetSpans(val []TempoSpan)
SetSpans sets the value of Spans.
func (*TempoSpanSet) UnmarshalJSON ¶
func (s *TempoSpanSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TempoSpanSet) Validate ¶
func (s *TempoSpanSet) Validate() error
type TraceByIDNotFound ¶
type TraceByIDNotFound struct{}
Ref: #/components/responses/TraceByIDNotFound
type TraceByIDParams ¶
type TraceByIDParams struct { // TraceID to query. TraceID string // Along with `end` define a time range from which traces should be returned. Start OptUnixSeconds // Along with `start` define a time range from which traces should be returned. // Providing both `start` and `end` will include traces for the specified time range only. // If the parameters are not provided then Tempo will check for the trace across all blocks in // backend. // If the parameters are provided, it will only check in the blocks within the specified time range, // this can result in trace not being found or partial results if it does not fall in the specified // time range. End OptUnixSeconds }
TraceByIDParams is parameters of traceByID operation.
type TraceByIDRes ¶
type TraceByIDRes interface {
// contains filtered or unexported methods
}
type TraceSearchMetadata ¶
type TraceSearchMetadata struct { TraceID string `json:"traceID"` RootServiceName OptString `json:"rootServiceName"` RootTraceName OptString `json:"rootTraceName"` StartTimeUnixNano time.Time `json:"startTimeUnixNano"` DurationMs OptInt `json:"durationMs"` SpanSet OptTempoSpanSet `json:"spanSet"` }
Ref: #/components/schemas/TraceSearchMetadata
func (*TraceSearchMetadata) Decode ¶
func (s *TraceSearchMetadata) Decode(d *jx.Decoder) error
Decode decodes TraceSearchMetadata from json.
func (*TraceSearchMetadata) Encode ¶
func (s *TraceSearchMetadata) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TraceSearchMetadata) GetDurationMs ¶
func (s *TraceSearchMetadata) GetDurationMs() OptInt
GetDurationMs returns the value of DurationMs.
func (*TraceSearchMetadata) GetRootServiceName ¶
func (s *TraceSearchMetadata) GetRootServiceName() OptString
GetRootServiceName returns the value of RootServiceName.
func (*TraceSearchMetadata) GetRootTraceName ¶
func (s *TraceSearchMetadata) GetRootTraceName() OptString
GetRootTraceName returns the value of RootTraceName.
func (*TraceSearchMetadata) GetSpanSet ¶
func (s *TraceSearchMetadata) GetSpanSet() OptTempoSpanSet
GetSpanSet returns the value of SpanSet.
func (*TraceSearchMetadata) GetStartTimeUnixNano ¶
func (s *TraceSearchMetadata) GetStartTimeUnixNano() time.Time
GetStartTimeUnixNano returns the value of StartTimeUnixNano.
func (*TraceSearchMetadata) GetTraceID ¶
func (s *TraceSearchMetadata) GetTraceID() string
GetTraceID returns the value of TraceID.
func (*TraceSearchMetadata) MarshalJSON ¶
func (s *TraceSearchMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraceSearchMetadata) SetDurationMs ¶
func (s *TraceSearchMetadata) SetDurationMs(val OptInt)
SetDurationMs sets the value of DurationMs.
func (*TraceSearchMetadata) SetFake ¶
func (s *TraceSearchMetadata) SetFake()
SetFake set fake values.
func (*TraceSearchMetadata) SetRootServiceName ¶
func (s *TraceSearchMetadata) SetRootServiceName(val OptString)
SetRootServiceName sets the value of RootServiceName.
func (*TraceSearchMetadata) SetRootTraceName ¶
func (s *TraceSearchMetadata) SetRootTraceName(val OptString)
SetRootTraceName sets the value of RootTraceName.
func (*TraceSearchMetadata) SetSpanSet ¶
func (s *TraceSearchMetadata) SetSpanSet(val OptTempoSpanSet)
SetSpanSet sets the value of SpanSet.
func (*TraceSearchMetadata) SetStartTimeUnixNano ¶
func (s *TraceSearchMetadata) SetStartTimeUnixNano(val time.Time)
SetStartTimeUnixNano sets the value of StartTimeUnixNano.
func (*TraceSearchMetadata) SetTraceID ¶
func (s *TraceSearchMetadata) SetTraceID(val string)
SetTraceID sets the value of TraceID.
func (*TraceSearchMetadata) UnmarshalJSON ¶
func (s *TraceSearchMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TraceSearchMetadata) Validate ¶
func (s *TraceSearchMetadata) Validate() error
type Traces ¶
type Traces struct {
Traces []TraceSearchMetadata `json:"traces"`
}
Ref: #/components/schemas/Traces
func (*Traces) GetTraces ¶
func (s *Traces) GetTraces() []TraceSearchMetadata
GetTraces returns the value of Traces.
func (*Traces) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Traces) SetTraces ¶
func (s *Traces) SetTraces(val []TraceSearchMetadata)
SetTraces sets the value of Traces.
func (*Traces) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) Echo ¶
func (UnimplementedHandler) Echo(ctx context.Context) (r EchoOK, _ error)
Echo implements echo operation.
Echo request for testing, issued by Grafana.
GET /api/echo
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (UnimplementedHandler) Search ¶
func (UnimplementedHandler) Search(ctx context.Context, params SearchParams) (r *Traces, _ error)
Search implements search operation.
Execute TraceQL query.
GET /api/search
func (UnimplementedHandler) SearchTagValues ¶
func (UnimplementedHandler) SearchTagValues(ctx context.Context, params SearchTagValuesParams) (r *TagValues, _ error)
SearchTagValues implements searchTagValues operation.
This endpoint retrieves all discovered values for the given tag, which can be used in search.
GET /api/search/tag/{tag_name}/values
func (UnimplementedHandler) SearchTagValuesV2 ¶
func (UnimplementedHandler) SearchTagValuesV2(ctx context.Context, params SearchTagValuesV2Params) (r *TagValuesV2, _ error)
SearchTagValuesV2 implements searchTagValuesV2 operation.
This endpoint retrieves all discovered values and their data types for the given TraceQL identifier.
GET /api/v2/search/tag/{tag_name}/values
func (UnimplementedHandler) SearchTags ¶
func (UnimplementedHandler) SearchTags(ctx context.Context) (r *TagNames, _ error)
SearchTags implements searchTags operation.
This endpoint retrieves all discovered tag names that can be used in search.
GET /api/search/tags
func (UnimplementedHandler) TraceByID ¶
func (UnimplementedHandler) TraceByID(ctx context.Context, params TraceByIDParams) (r TraceByIDRes, _ error)
TraceByID implements traceByID operation.
Querying traces by id.
GET /api/traces/{traceID}
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_faker_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go