Skip to content

Latest commit

 

History

History
278 lines (183 loc) · 7.4 KB

CHANGELOG.md

File metadata and controls

278 lines (183 loc) · 7.4 KB

Changelog

v1.16.0

  • Updated OpenTelemetry to v1.16.0.

v1.15.0

  • Updated OpenTelemetry to v1.15.0.

v1.14.0

  • Updated OpenTelemetry to v1.14.0.

v1.13.0

  • Updated OpenTelemetry to v1.13.0.

v1.12.0

  • Updated OpenTelemetry to v1.12.0.

v1.11.0

  • Updated OpenTelemetry to v1.11.0.

v1.10.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.

v1.9.0

  • Updated OpenTelemetry to v1.9.0 and semconv v1.12.0.

v1.8.0

  • Updated OpenTelemetry to v1.8.0.

v1.7.0

  • Updated OpenTelemetry to v1.7.0.

v1.6.3

  • Updated OpenTelemetry to v1.6.3.

v1.6.0

  • 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

v1.5.0

  • Updated OpenTelemetry to v1.5.0.

v1.4.0

  • Updated OpenTelemetry to v1.4.0.

v1.3.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.

v1.2.0

  • Updated OpenTelemetry to v1.2.0.

v1.1.0

v1.0.5

  • otelzap: added support for sugared loggers.

v1.0.4

  • Added otelgorm instrumentation for GORM.
  • Changed otelsql to not set error status on sql.ErrNoRows errors.

v1.0.3

  • 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 a otelzap.Logger to add OpenTelemetry instrumentation.

v1.0.2

  • Updated OpenTelemetry to v1.0.0.

v1.0.1

v1.0.0

  • No changes. The purpose of this release is to avoid confusion with Go installing v0.21.1 by default.

v1.0.0-RC3

  • Fully switched to using OpenTelemetry Protocol (OTLP) for exporting spans and metrics. This is fully backwards compatible and should not cause any disruptive changes.

v1.0.0-RC2

  • 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:

    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.

v0.21.1

  • Added back missing resource attributes: host.name and telemetry.sdk.*.

v0.21.0

v0.20.0

  • Updated OpenTelemetry to v0.20.0.

v0.19.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.

v0.9.0

v0.6.0

Added

  • Added Config.ServiceName, Config.ServiceVersion, and Config.ResourceAttributes.
  • Added span filter and an example.

v0.5.0

Added

  • Added default Config.Resource.
  • Added Config.TextMapPropagator with sensible default value.

v0.4.0

Added

  • Config.PrettyPrint for debugging.

Changed

  • 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),
),