update instrumenter api on contributing doc (#10308)
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
This commit is contained in:
parent
e04b448b6c
commit
da49a4c517
|
@ -418,16 +418,16 @@ method for that: passing `false` will turn the newly created `Instrumenter` into
|
|||
The `Instrumenter` creation process ends with calling one of the following `InstrumenterBuilder`
|
||||
methods:
|
||||
|
||||
- `newInstrumenter()`: the returned `Instrumenter` will always start spans with kind `INTERNAL`.
|
||||
- `newInstrumenter(SpanKindExtractor)`: the returned `Instrumenter` will always start spans with
|
||||
- `buildInstrumenter()`: the returned `Instrumenter` will always start spans with kind `INTERNAL`.
|
||||
- `buildInstrumenter(SpanKindExtractor)`: the returned `Instrumenter` will always start spans with
|
||||
kind determined by the passed `SpanKindExtractor`.
|
||||
- `newClientInstrumenter(TextMapSetter)`: the returned `Instrumenter` will always start `CLIENT`
|
||||
- `buildClientInstrumenter(TextMapSetter)`: the returned `Instrumenter` will always start `CLIENT`
|
||||
spans and will propagate operation context into the outgoing request.
|
||||
- `newServerInstrumenter(TextMapGetter)`: the returned `Instrumenter` will always start `SERVER`
|
||||
- `buildServerInstrumenter(TextMapGetter)`: the returned `Instrumenter` will always start `SERVER`
|
||||
spans and will extract the parent span context from the incoming request.
|
||||
- `newProducerInstrumenter(TextMapSetter)`: the returned `Instrumenter` will always start `PRODUCER`
|
||||
- `buildProducerInstrumenter(TextMapSetter)`: the returned `Instrumenter` will always start `PRODUCER`
|
||||
spans and will propagate operation context into the outgoing request.
|
||||
- `newConsumerInstrumenter(TextMapGetter)`: the returned `Instrumenter` will always start `SERVER`
|
||||
- `buildConsumerInstrumenter(TextMapGetter)`: the returned `Instrumenter` will always start `CONSUMER`
|
||||
spans and will extract the parent span context from the incoming request.
|
||||
|
||||
The last four variants that create non-`INTERNAL` spans accept either `TextMapSetter`
|
||||
|
|
Loading…
Reference in New Issue