1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-12-07 23:32:49 +02:00

add WithSpanKind option to span creation (#234)

* add WithSpanKind option to span creation

* change SpanKind to string alias and add support for SpanKind on ot bridge

* fix tests

* fix import order

* fix nits
This commit is contained in:
Gustavo Silva Paiva
2019-10-23 20:25:14 -03:00
committed by rghetia
parent 8cb3786789
commit 5e3a2105b9
11 changed files with 109 additions and 23 deletions

View File

@@ -27,7 +27,7 @@ import (
type SpanData struct {
SpanContext core.SpanContext
ParentSpanID uint64
SpanKind int
SpanKind apitrace.SpanKind
Name string
StartTime time.Time
// The wall clock time of EndTime will be adjusted to always be offset