Releases
v1.0.0-RC2
punya
released this
04 Aug 21:01
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 ).
You can’t perform that action at this time.