Skip to content

Commit

Permalink
Merge pull request #90 from instana/expose_sensor_tracer
Browse files Browse the repository at this point in the history
Expose instana.Sensor tracer
  • Loading branch information
Andrew Slotin authored Mar 17, 2020
2 parents be8beb4 + 0dd53ce commit 211434f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ func NewSensorWithTracer(tracer ot.Tracer) *Sensor {
return &Sensor{tracer: tracer}
}

// Tracer returns the tracer instance for this sensor
func (s *Sensor) Tracer() ot.Tracer {
return s.tracer
}

// TraceHandler is similar to TracingHandler in regards, that it wraps an existing http.HandlerFunc
// into a named instance to support capturing tracing information and data. The returned values are
// compatible with handler registration methods, e.g. http.Handle()
Expand Down

0 comments on commit 211434f

Please sign in to comment.