Skip to content

v0.22.0 and v1.0.0-RC2

Compare
Choose a tag to compare
@punya punya released this 04 Aug 21:01
· 458 commits to main since this release
cec455d

Breaking changes

  • Simplify exporter creation functions (#193, #194).
Before After
tp, shutdown, err := exporter.InstallNewPipeline(
  exporterOpts,
  sdkOpts...,
)
// handle error
defer shutdown()
exporter, err := exporter.New(exporterOpts)
// handle error
tp := sdktrace.NewTracerProvider(
  sdktrace.WithBatcher(exporter),
  sdkOpts...,
)
defer tp.Shutdown(context.Background())
otel.SetTracerProvider(tp)
tp, shutdown, err := exporter.NewExportPipeline(
  exporterOpts,
  sdkOpts...,
)
// handle error
defer shutdown()
exporter, err := exporter.New(exporterOpts)
// handle error
tp := sdktrace.NewTracerProvider(
  sdktrace.WithBatcher(exporter),
  sdkOpts...,
)
defer tp.Shutdown(context.Background())
  • Remove ExportCustomSpans and associated interface which were introduced in -RC1 (#187).
  • Un-export string constants from OTel semantic conventions (#192).
  • Remove DisplayNameFormatter and DefaultTraceAttributes from trace exporter options (#188, #191)
  • Use OTel ErrorHandler for handling errors (#196).

Enhancements

  • Update to OTel-go v1.0.0-RC2 + v0.22.0 (#199) and other miscellaneous dependencies (#197).
  • Remove unused Location field from trace options (#195).