- Updated OpenTelemetry to v1.16.0.
- Updated OpenTelemetry to v1.15.0.
- Updated OpenTelemetry to v1.14.0.
- Updated OpenTelemetry to v1.13.0.
- Updated OpenTelemetry to v1.12.0.
- Updated OpenTelemetry to v1.11.0.
- Updated OpenTelemetry to v1.10.0. This release has known issues with exporting metrics so stay on v1.9.0 if you are affected.
- Updated OpenTelemetry to v1.9.0 and semconv v1.12.0.
- Updated OpenTelemetry to v1.8.0.
- Updated OpenTelemetry to v1.7.0.
- Updated OpenTelemetry to v1.6.3.
- Updated OpenTelemetry to v1.6.0.
If you are getting
cannot use sum.CoerceToFloat64(desc.NumberKind()) (value of type float64) as type *float64 in struct literal
,
add the following line to go.mod
and run go mod tidy
:
exclude go.opentelemetry.io/proto/otlp v0.15.0
- Updated OpenTelemetry to v1.5.0.
- Updated OpenTelemetry to v1.4.0.
-
Updated OpenTelemetry to v1.3.0.
-
Added
WithResourceDetectors
to configure resource detectors, for example:
import (
"github.com/uptrace/uptrace-go/uptrace"
"go.opentelemetry.io/contrib/detectors/aws/ec2"
)
uptrace.ConfigureOpentelemetry(
uptrace.WithResourceDetectors(ec2.NewResourceDetector()),
)
See documentation for details.
- Updated OpenTelemetry to v1.2.0.
- Updated OpenTelemetry to v1.1.0.
- Moved instrumentations to opentelemetry-go-extra
- otelzap: added support for sugared loggers.
- Added otelgorm instrumentation for GORM.
- Changed otelsql to not set
error
status on sql.ErrNoRows errors.
- Updated OpenTelemetry to v1.0.1.
- Added otelsql instrumentation to instrument database/sql client. The
instrumentation records processed queries and reports
sql.DBStats
metrics. - Changed otelzap instrumentation to work with a standard unpatched version of
Zap. The logging API is compatible, but you now have to wrap a
zap.Logger
with aotelzap.Logger
to add OpenTelemetry instrumentation.
- Updated OpenTelemetry to v1.0.0.
- Updated OpenTelemetry to v1.0.0-RC3.
- No changes. The purpose of this release is to avoid confusion with Go installing v0.21.1 by default.
- Fully switched to using OpenTelemetry Protocol (OTLP) for exporting spans and metrics. This is fully backwards compatible and should not cause any disruptive changes.
-
Updated OpenTelemetry to v1.0.0-RC2.
-
Changed configuration to use options instead of a single
Config
struct. All the previous configuration options are fully supported.There are 3 types of options:
- Option for common options that configure tracing and metrics.
- TracingOption for options specific to tracing.
- MetricsOption for options specific to metrics.
For example, to configure tracing and metrics:
uptrace.ConfigureOpentelemetry( uptrace.WithDSN("https://<token>@uptrace.dev/<project_id>"), uptrace.WithServiceName("myservice"), uptrace.WithServiceVersion("1.0.0"), )
To configure only tracing, use
WithMetricsDisabled
option:uptrace.ConfigureOpentelemetry( uptrace.WithMetricsDisabled(), uptrace.WithDSN("https://<token>@uptrace.dev/<project_id>"), uptrace.WithServiceName("myservice"), uptrace.WithServiceVersion("1.0.0"), )
-
Added support for OpenTelemetry Metrics using standard OTLP exporter.
-
Enabled metrics by default.
WithMetricsDisabled
option can be used to disable metrics.
- Added back missing resource attributes:
host.name
andtelemetry.sdk.*
.
- Updated OpenTelemetry to v1.0.0-RC1.
- Updated OpenTelemetry to v0.20.0.
-
Updated OpenTelemetry to v0.19.0.
-
Changed API and configuration to better indicate that opentelemetry-go can only be configured once. Before:
upclient := uptrace.NewClient(&uptrace.Config{...}) defer upclient.Close() fmt.Println(upclient.TraceURL(trace.SpanFromContext(ctx)))
Now:
uptrace.ConfigureOpentelemetry(&uptrace.Config{...}) defer uptrace.Shutdown(ctx) fmt.Println(uptrace.TraceURL(trace.SpanFromContext(ctx)))
-
Changed uptrace-go to follow the versioning of opentelemetry-go. For example, uptrace-go v0.19.x is compatible with opentelemetry-go v0.19.x.
- Updated OpenTelemetry to v0.18.0
- Added
Config.ServiceName
,Config.ServiceVersion
, andConfig.ResourceAttributes
. - Added span filter and an example.
- Added default
Config.Resource
. - Added
Config.TextMapPropagator
with sensible default value.
Config.PrettyPrint
for debugging.
Config.Resource
type is*resource.Resource
. Before:
Resource: map[string]interface{}{
"host.name": hostname,
},
After:
import "go.opentelemetry.io/otel/sdk/resource"
Resource: resource.New(
label.String("host.name", hostname),
),