Documentation ¶
Index ¶
- func ExportLogsServiceRequest(resourceAttrs []*commonpb.KeyValue, config LogConfig) *collogspb.ExportLogsServiceRequest
- func ExportMetricsServiceRequest(resourceAttrs []*commonpb.KeyValue, config MetricConfig) *colmetricspb.ExportMetricsServiceRequest
- func ExportTraceServiceRequest(resourceAttrs []*commonpb.KeyValue, config TraceConfig) *coltracepb.ExportTraceServiceRequest
- func ResourceLogs(resourceAttrs []*commonpb.KeyValue, config LogConfig) *logspb.ResourceLogs
- func ResourceMetrics(resourceAttrs []*commonpb.KeyValue, config MetricConfig) *metricspb.ResourceMetrics
- func ResourceSpans(resourceAttrs []*commonpb.KeyValue, config TraceConfig) *tracepb.ResourceSpans
- func ToAnyValue(attr interface{}) *commonpb.AnyValue
- func ToAttributes(attrs map[string]interface{}) []*commonpb.KeyValue
- type GaugeData
- type Generator
- func (g *Generator) ExportLogsServiceRequest(config LogConfig) []byte
- func (g *Generator) ExportMetricsServiceRequest(config MetricConfig) []byte
- func (g *Generator) ExportTraceServiceRequest(config TraceConfig) []byte
- func (g *Generator) SetStaticResourceAttributes(attrs map[string]interface{})
- func (g *Generator) TimeNowUnixNano() int64
- type HistogramData
- type IDGenerator
- type LogConfig
- type LogData
- type MetricConfig
- type ModuleInstance
- type RootModule
- type SpanData
- type SumData
- type TraceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportLogsServiceRequest ¶
func ExportLogsServiceRequest( resourceAttrs []*commonpb.KeyValue, config LogConfig, ) *collogspb.ExportLogsServiceRequest
func ExportMetricsServiceRequest ¶
func ExportMetricsServiceRequest( resourceAttrs []*commonpb.KeyValue, config MetricConfig, ) *colmetricspb.ExportMetricsServiceRequest
func ExportTraceServiceRequest ¶
func ExportTraceServiceRequest( resourceAttrs []*commonpb.KeyValue, config TraceConfig, ) *coltracepb.ExportTraceServiceRequest
func ResourceLogs ¶
func ResourceLogs(resourceAttrs []*commonpb.KeyValue, config LogConfig) *logspb.ResourceLogs
func ResourceMetrics ¶
func ResourceMetrics(resourceAttrs []*commonpb.KeyValue, config MetricConfig) *metricspb.ResourceMetrics
func ResourceSpans ¶
func ResourceSpans(resourceAttrs []*commonpb.KeyValue, config TraceConfig) *tracepb.ResourceSpans
func ToAnyValue ¶
func ToAttributes ¶
Types ¶
type Generator ¶
type Generator struct { *IDGenerator // contains filtered or unexported fields }
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a Generator instance which can create supported OpenTelemetry signals.
func (*Generator) ExportLogsServiceRequest ¶
func (*Generator) ExportMetricsServiceRequest ¶
func (g *Generator) ExportMetricsServiceRequest(config MetricConfig) []byte
func (*Generator) ExportTraceServiceRequest ¶
func (g *Generator) ExportTraceServiceRequest(config TraceConfig) []byte
func (*Generator) SetStaticResourceAttributes ¶
func (*Generator) TimeNowUnixNano ¶
type HistogramData ¶
type IDGenerator ¶
func (*IDGenerator) NewSpanID ¶
func (idGen *IDGenerator) NewSpanID() string
func (*IDGenerator) NewTraceID ¶
func (idGen *IDGenerator) NewTraceID() string
type MetricConfig ¶
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() modules.Exports
Exports implements the modules.Instance interface and returns the exported types for the JS module.
type RootModule ¶
type RootModule struct{}
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(_ modules.VU) modules.Instance
NewModuleInstance implements the modules.Module interface returning a new instance for each VU.
type SpanData ¶
type SpanData struct { TraceID string `js:"traceId"` SpanID string `js:"spanId"` ParentSpanID string `js:"parentSpanId"` Name string `js:"name"` Attributes map[string]interface{} `js:"attributes"` Kind string `js:"kind"` StartTimeUnixNano uint64 `js:"startTimeUnixNano"` EndTimeUnixNano uint64 `js:"endTimeUnixNano"` }
type TraceConfig ¶
type TraceConfig struct {
Data []SpanData `js:"data"`
}
Click to show internal directories.
Click to hide internal directories.