Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reamd
  • Loading branch information
Yun-Ting committed Mar 1, 2022
commit 6a6e74d62fd36ae38554305ac1c9bd50e2485163
11 changes: 11 additions & 0 deletions docs/trace/extending-the-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* [Building your own instrumentation library](#instrumentation-library)
* [Building your own processor](#processor)
* [Building your own sampler](#sampler)
* [Building your own resourceDetector](#detector)
* [References](#references)

## Exporter
Expand Down Expand Up @@ -293,6 +294,16 @@ class MySampler : Sampler

A demo sampler is shown [here](./MySampler.cs).

## ResourceDetector
Custom ResourceDetector can be implemented:

* ResourceDetectors should inherit from
`OpenTelemetry.Resources.IResourceDetector`, (which belongs
to the [OpenTelemetry](../../../src/OpenTelemetry/README.md)
package), and implement the `Detect` method.

A demo ResourceDetector is shown [here](./MyResourceDetector.cs).

## References

* [Exporter
Expand Down