1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/oteltest
Tyler Yahn ec300b28ad
Update Span API event methods (#1254)
* Update Span API event methods

Remove the context argument from the event methods. It is unused and can
be added back in as a passed option if needed in the future.

Update AddEvent to accept a required name and a set of options. These
options are the new EventOption type that can be used to configure a
SpanConfig Timestamp and Attributes.

Remove the AddEventWithTimestamp method as it is redundant to calling
AddEvent with a WithTimestamp option.

Update RecordError to also accept the EventOptions.

* Add changes to CHANGELOG

* Add LifeCycleOption

Use the LifeCycleOption to encapsulate the options passed to a span for
life cycle events.
2020-10-16 08:09:27 -07:00
..
config.go Update documentation for otel/oteltest (#1248) 2020-10-13 12:27:53 -07:00
doc.go Update documentation for otel/oteltest (#1248) 2020-10-13 12:27:53 -07:00
event.go Update Span API event methods (#1254) 2020-10-16 08:09:27 -07:00
harness.go Update Span API event methods (#1254) 2020-10-16 08:09:27 -07:00
mock_span.go Update Span API event methods (#1254) 2020-10-16 08:09:27 -07:00
mock_tracer_test.go Move trace api package into otel (#1229) 2020-10-08 19:58:56 -07:00
mock_tracer.go Move trace api package into otel (#1229) 2020-10-08 19:58:56 -07:00
provider.go Update documentation for otel/oteltest (#1248) 2020-10-13 12:27:53 -07:00
span_test.go Update Span API event methods (#1254) 2020-10-16 08:09:27 -07:00
span.go Update Span API event methods (#1254) 2020-10-16 08:09:27 -07:00
text_map_propagator_test.go Add oteltest TextMap propagator and carrier (#1259) 2020-10-15 09:15:52 -07:00
text_map_propagator.go Add oteltest TextMap propagator and carrier (#1259) 2020-10-15 09:15:52 -07:00
tracer_test.go Move api/apitest into the otel/oteltest package (#1241) 2020-10-12 08:47:41 -07:00
tracer.go Update documentation for otel/oteltest (#1248) 2020-10-13 12:27:53 -07:00