1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/oteltest
Jack Wink 33699d242d
Adds semantic conventions for exceptions (#1492)
Adds support for the opentelemetry exceptions semantic conventions. In
short, this has RecordError produce an exception event with exception
attributes instead of using the error event and error attributes.

While golang does not have exceptions, the spec itself does not
differentiate between errors and exceptions for recording purposes.
RecordError was kept as the method name, both for backwards
compatibility and to reduce confusion (the method signature takes in a
golang error object). The spec appears to allow this, as it suggests the
method is optional and signature may reflect whatever is most appropriate
for the language implementing it.

It may seem non-intuitive to log an exception event from a method called
RecordError, but it's beneficial to have consistent behavior across all
opentelemetry SDKs. Downstream projects like the opentelemetry-collector
can build off of the published API and not special case behaviors from
individual languages.
2021-04-01 13:07:46 -07:00
..
alignment_test.go Rename internal/testing to internal/internaltest (#1449) 2021-01-12 08:56:16 -08:00
config.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
doc.go Make oteltest.SpanRecorder into a concrete type (#1542) 2021-02-17 07:31:59 -08:00
event.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
go.mod Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
go.sum Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#1667) 2021-03-08 12:15:49 -08:00
harness.go Add a test to prove the Tracer is safe for concurrent calls (#1665) 2021-03-16 11:55:14 -04:00
meter.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
provider.go Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
span_test.go Adds semantic conventions for exceptions (#1492) 2021-04-01 13:07:46 -07:00
span.go Adds semantic conventions for exceptions (#1492) 2021-04-01 13:07:46 -07:00
text_map_propagator_test.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
text_map_propagator.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
tracer_test.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
tracer.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00