Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add c# quickstart #72

Merged
merged 5 commits into from
Nov 11, 2019
Merged

add c# quickstart #72

merged 5 commits into from
Nov 11, 2019

Conversation

austinlparker
Copy link
Member

for #35

content/docs/csharp/tracing.md Outdated Show resolved Hide resolved
1. Install OpenTelemetry via [NuGet](https://www.nuget.org/packages/OpenTelemetry) along with an exporter such as [Zipkin](https://www.nuget.org/packages/OpenTelemetry.Exporter.Zipkin) or [Jaeger](https://www.nuget.org/packages/OpenTelemetry.Exporter.Jaeger).
2. Create a `Tracer` through the `TracerFactory`, as shown:
```csharp
using (var tracerFactory = TracerFactory.Create(builder => builder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the most common pattern will be to construct tracefactory and never dispose. So maybe this example may be simplified by removing using.

@austinlparker austinlparker merged commit b39db6b into open-telemetry:master Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants