Skip to content

Commit

Permalink
Satisfied markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire committed Mar 6, 2023
1 parent 290d486 commit ba2edeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ The `OtlpExporterOptions` type setters take precedence over the environment vari
This can be achieved by providing an `Action<OtlpExporterOptions>` delegate to the
`AddOtlpExporter()` method or using `AddOptions<OtlpExporterOptions>()`.

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<OtlpExporterOptions>().Configure<Service>((opts, svc) => {
// ...
Expand Down
8 changes: 6 additions & 2 deletions src/OpenTelemetry.Extensions.Hosting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ba2edeb

Please sign in to comment.