otlptrace
packagemoduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
Documentation¶
Overview¶
Package otlptrace contains abstractions for OTLP span exporters.See the official OTLP span exporter implementations:
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
Types¶
typeClient¶
type Client interface {// Start should establish connection(s) to endpoint(s). It is// called just once by the exporter, so the implementation// does not need to worry about idempotence and locking.Start(ctxcontext.Context)error// Stop should close the connections. The function is called// only once by the exporter, so the implementation does not// need to worry about idempotence, but it may be called// concurrently with UploadTraces, so proper// locking is required. The function serves as a// synchronization point - after the function returns, the// process of closing connections is assumed to be finished.Stop(ctxcontext.Context)error// UploadTraces should transform the passed traces to the wire// format and send it to the collector. May be called// concurrently.UploadTraces(ctxcontext.Context, protoSpans []*tracepb.ResourceSpans)error}Client manages connections to the collector, handles thetransformation of data into wire format, and the transmission of thatdata to the collector.
typeExporter¶
type Exporter struct {// contains filtered or unexported fields}Exporter exports trace data in the OTLP wire format.
funcNewUnstarted¶
NewUnstarted constructs a new Exporter and does not start it.
func (*Exporter)ExportSpans¶
ExportSpans exports a batch of spans.
func (*Exporter)MarshalLog¶added inv1.5.0
MarshalLog is the marshaling function used by the logging system to represent this Exporter.
Directories¶
| Path | Synopsis |
|---|---|
internal | |
tracetransform Package tracetransform provides conversion functionality for the otlptrace exporters. | Package tracetransform provides conversion functionality for the otlptrace exporters. |
otlptracegrpcmodule | |
otlptracehttpmodule |