diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md index 96808c03fa3..ccdc6d93d1c 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md @@ -69,7 +69,9 @@ The `OtlpExporterOptions` type setters take precedence over the environment vari This can be achieved by providing an `Action` delegate to the `AddOtlpExporter()` method or using `AddOptions()`. -If additional services from the dependency injection are required, they can be configured like this: +If additional services from the dependency injection are required, they can be +configured like this: + ```csharp services.AddOptions().Configure((opts, svc) => { // ... diff --git a/src/OpenTelemetry.Extensions.Hosting/README.md b/src/OpenTelemetry.Extensions.Hosting/README.md index 886fcd1df0d..2f8757b616c 100644 --- a/src/OpenTelemetry.Extensions.Hosting/README.md +++ b/src/OpenTelemetry.Extensions.Hosting/README.md @@ -84,8 +84,12 @@ A fully functional example can be found [here](https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/examples/AspNetCore). ### Resources -To dynamically add resources at startup from the dependency injection you can provide an `IResourceDetector`. -To make use of it add it to the dependency injection and they you can use the `ISerivceProvider` add it to OpenTelemetry: + +To dynamically add resources at startup from the dependency injection you can +provide an `IResourceDetector`. +To make use of it add it to the dependency injection and they you can use the +`ISerivceProvider` add it to OpenTelemetry: + ```csharp public class MyResourceDetector : IResourceDetector {