From ae81d71ecd837e73cb9972c25209b49773374166 Mon Sep 17 00:00:00 2001 From: Mike Goldsmth Date: Wed, 10 May 2023 12:41:28 +0100 Subject: [PATCH] [docs] Update README with details on SDK builder overwriting issue --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9b244be..dad731f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ Honeycomb's OpenTelemetry .NET SDK gives you the ability to add manual instrumen - Deterministic sampling! - Multi-span attributes! +### Overriding OpenTelemetry SDK Builder options + +The OpenTelemetry SDK uses a builder pattern to set options and currently does not provide a way to know if a particular option has already been set. +This can lead to the same option being set multiple times with the last one wins behaviour. + +For example, the `AddHoneycomb(options)` function configures a Sampler so another call to `SetSampler(sampler)` will override the first sampler. + ## License [Apache 2.0 License](./LICENSE). \ No newline at end of file