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
Marshalerconfig option tootlphttpto enable otlp over json or protobufs. (Add HTTP/JSON to the otlp exporter #1586)ForceFlushmethod to the"go.opentelemetry.io/otel/sdk/trace".TracerProviderto flush all registeredSpanProcessors. (Add ForceFlush method to TracerProvider #1608)WithSamplerandWithSpanLimitsto tracer provider. (Avoid overriding configuration of tracer provider #1633, Rename WithDefaultSampler TracerProvider option to WithSampler and update docs #1702)"go.opentelemetry.io/otel/trace".SpanContextnow has aremoteproperty, andIsRemote()predicate, that is true when theSpanContexthas been extracted from remote context data. (Add flag to determine whether SpanContext is remote #1701)Validmethod to the"go.opentelemetry.io/otel/attribute".KeyValuetype. (Comply with OpenTelemetry attributes specification #1703)Changed
trace.SpanContextis now immutable and has no exported fields. (Make SpanContext Immutable #1573)trace.NewSpanContext()can be used in conjunction with thetrace.SpanContextConfigstruct to initialize a newSpanContextwhere all values are known.ForceFlushmethod signature to the"go.opentelemetry.io/otel/sdk/trace".SpanProcessorto accept acontext.Contextand return an error. (Add ForceFlush method to TracerProvider #1608)Shutdownmethod to the"go.opentelemetry.io/otel/sdk/trace".TracerProviderreturn an error on shutdown failure. (Add ForceFlush method to TracerProvider #1608)SpanExporterand gracefully ignore subsequent calls toOnEndafterShutdownis called. (Update the SimpleSpanProcessor #1612)"go.opentelemetry.io/sdk/metric/controller.basic".WithPusheris replaced withWithExporterto provide consistent naming across project. (exporter: swap pusher for exporter #1656)Attributekeys. (Add non-empty string check for attribute keys #1659)descriptionto SpanStatus only whenStatusCodeis set to error. ( SpanStatus description set only when status code is set to Error #1662)resource.Default'sservice.nameif the exported Span does not have one. (Populate Jaeger's Span.Process from Resource #1673)LabelSetmethod of"go.opentelemetry.io/otel/sdk/resource".ResourcetoSet. (Rename resource pkg label vars and methods #1692)WithSDKtoWithSDKOptionsto accept variadic arguments ofTracerProviderOptiontype ingo.opentelemetry.io/otel/exporters/trace/jaegerpackage. (sdk/trace: removing ApplyConfig and Config #1693)WithSDKtoWithSDKOptionsto accept variadic arguments ofTracerProviderOptiontype ingo.opentelemetry.io/otel/exporters/trace/zipkinpackage. (sdk/trace: removing ApplyConfig and Config #1693)"go.opentelemetry.io/otel/sdk/resource".NewWithAttributeswill now drop any invalid attributes passed. (Comply with OpenTelemetry attributes specification #1703)"go.opentelemetry.io/otel/sdk/resource".StringDetectorwill now error if the produced attribute is invalid. (Comply with OpenTelemetry attributes specification #1703)Removed
serviceNameparameter from Zipkin exporter and uses resource instead. (Zipkin exporter should take service.name from Resource #1549)WithConfigfrom tracer provider to avoid overriding configuration. (Avoid overriding configuration of tracer provider #1633)SimpleSpanProcessorandBatchSpanProcessorstructs.These are now returned as a SpanProcessor interface from their respective constructors. (Unexport the simple and batch SpanProcessors #1638)
WithRecord()fromtrace.SpanOptionwhen creating a span. (Remove WithRecord() option from trace.SpanOption when starting a span #1660)Errorwhile recording an error as a span event inRecordError. (Removed setting error status while recording err as span event #1663)jaeger.WithProcessconfiguration option. (Populate Jaeger's Span.Process from Resource #1673)ApplyConfigmethod from"go.opentelemetry.io/otel/sdk/trace".TracerProviderand the now unneededConfigstruct. (sdk/trace: removing ApplyConfig and Config #1693)Fixed
SamplingResult.TraceStateis correctly propagated to a newly created span'sSpanContext. (Add tests for propagation of Sampler Tracestate changes #1655)otel-collectorexample now correctly flushes metric events prior to shutting down the exporter. (Flush metric events prior to shutdown in OTLP example #1678)SpanStatusFromHTTPStatusCodeif it can be inferred fromhttp.status_code. (Span status from HTTP code: Do not set status message if it can be inferred #1681)TracerProvider. (Fix issue #1490, apply same logic as in the SDK #1687)