Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
EventOption
and the relatedNewEventConfig
function are added to thego.opentelemetry.io/otel
package to configure Span events. (Update Span API event methods #1254)TextMapPropagator
and associatedTextMapCarrier
are added to thego.opentelemetry.io/otel/oteltest
package to testTextMap
type propagators and their use. (Add oteltest TextMap propagator and carrier #1259)SpanContextFromContext
returnsSpanContext
from context. (Add SpanContextFromContext() #1255)DeploymentEnvironmentKey
added togo.opentelemetry.io/otel/semconv
package. (feat(semconv): Add DeploymentEnvironmentKey to semconv package #1323)SpanProcessor.OnStart
to follow the specification. (Add parent context to SpanProcessor.OnStart #1333)sdk/trace/attributes_map.go
. (Add missing tests for attributesMap #1337)Changed
go.opentelemetry.io/otel/api/trace
package intogo.opentelemetry.io/otel/trace
with the following changes. (Move trace api package intootel
#1229) (Move tracing code to trace package #1307)ID
has been renamed toTraceID
.IDFromHex
has been renamed toTraceIDFromHex
.EmptySpanContext
is removed.go.opentelemetry.io/otel/api/trace/tracetest
package intogo.opentelemetry.io/otel/oteltest
. (Move trace api package intootel
#1229)Kind
type from thego.opentelemetry.io/otel/api/metric
package was renamed toInstrumentKind
to more specifically describe what it is and avoid semantic ambiguity. (Rename Kind from theapi/metric
package #1240)MetricKind
method of theDescriptor
type in thego.opentelemetry.io/otel/api/metric
package was renamed toDescriptor.InstrumentKind
.This matches the returned type and fixes misuse of the term metric. (Rename Kind from the
api/metric
package #1240)go.opentelemetry.io/otel/api/apitest
package intogo.opentelemetry.io/otel/oteltest
. (Moveapi/apitest
into theotel/oteltest
package #1241)go.opentelemetry.io/otel/api/metric/metrictest
package intogo.opentelemetry.io/oteltest
as part of Move OpenTelemetry API to top level go.opentelemetry.io/otel package #964. (Move metric api package intootel
#1252)go.opentelemetry.io/otel/api/metric
package intogo.opentelemetry.io/otel/metric
as part of Encapsulate OTel API #1303. (Move metric code to a separate package #1321)go.opentelemetry.io/otel/api/metric/registry
package intogo.opentelemetry.io/otel/metric/registry
as a part of Encapsulate OTel API #1303. (Prepare to move metrics code to separate subpackage #1316)Number
type (together with related functions) fromgo.opentelemetry.io/otel/api/metric
package intogo.opentelemetry.io/otel/metric/number
as a part of Encapsulate OTel API #1303. (Prepare to move metrics code to separate subpackage #1316)AddEvent
method ingo.opentelemetry.io/otel
is updated to no longer take an unused context and instead take a required name and a variable number ofEventOption
s. (Update Span API event methods #1254)RecordError
method ingo.opentelemetry.io/otel
is updated to no longer take an unused context and instead take a required error value and a variable number ofEventOption
s. (Update Span API event methods #1254)go.opentelemetry.io/otel/api/global
package togo.opentelemetry.io/otel
. (Move the otel/api/global package to otel/global #1262) (Move Version function and code from global to toplevel #1330)Version
function fromgo.opentelemetry.io/otel/sdk
togo.opentelemetry.io/otel
. (Move Version function and code from global to toplevel #1330)"otcorrelations"
to"baggage"
to match the OpenTelemetry specification. (Renaming otcorrelations header to baggage #1267)Code.UnmarshalJSON
to work with valid JSON only. (FixCode.UnmarshalJSON
to work with valid json only #1276)resource.New()
method changes signature to support builtin attributes and functional options, includingtelemetry.sdk.*
andhost.name
semantic conventions; the former method is renamedresource.NewWithAttributes
. (Change resource.New() to use functional options; add builtin attributes for (host.*, telemetry.sdk.*) #1235)UpDownCounter
s) as gauges. (Prometheus exporter should use Gauge for non-monotonic sums #1210)Span.End
method documentation in theotel
API to state updates are not allowed on a span after it has ended. (Update Span End method documentation #1310)semconv.HTTPUrlKey
tosemconv.HTTPURLKey
. (s/HTTPUrlKey/HTTPURLKey/ in semconv #1338)Removed
ErrInvalidHexID
,ErrInvalidTraceIDLength
,ErrInvalidSpanIDLength
,ErrInvalidSpanIDLength
, orErrNilSpanID
from thego.opentelemetry.io/otel
package are unexported now. (Fix lint issues in otel package #1243)AddEventWithTimestamp
method on theSpan
interface ingo.opentelemetry.io/otel
is removed due to its redundancy.It is replaced by using the
AddEvent
method with aWithTimestamp
option. (Update Span API event methods #1254)MockSpan
andMockTracer
types are removed fromgo.opentelemetry.io/otel/oteltest
.Tracer
andSpan
from the same module should be used in their place instead. (Remove MockSpan and MockTracer #1306)WorkerCount
option is removed fromgo.opentelemetry.io/otel/exporters/otlp
. (Some cleanups in otlp exporter #1350)Fixed
MergeItererator
toMergeIterator
in thego.opentelemetry.io/otel/label
package. (Fix lint issues in the label package #1244)go.opentelemetry.io/otel/api/global
packages global TextMapPropagator now delegates functionality to a globally set delegate for all previously returned propagators. (Add delegating global propagator #1258)label.Any
. (Check marshalled value instead of iface #1299)TracerProvider
to pass options to its configured provider. (Pass options to configured TracerProvider #1329)ExactKind
aggregator in OTLP metrics transformer (support exact kind in OTLP metrics exporter #1309)