Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit ff0d82f

Browse files
zipkin in readme (#33)
1 parent bf782f7 commit ff0d82f

File tree

4 files changed

+81
-38
lines changed

4 files changed

+81
-38
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rewrap.wrappingColumn": 79
3+
}

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Unreleased
22

3-
- Initial version of SDK published. It is based on contribution from Pivotal from https://github.com/SteeltoeOSS/Management/tree/dev/src/Steeltoe.Management.OpenCensus
4-
3+
- Zipkin exporter implemented.
4+
- Initial version of SDK published. It is based on contribution from Pivotal
5+
[from](https://github.com/SteeltoeOSS/Management/tree/dev/src/Steeltoe.Management.OpenCensus).

CONTRIBUTING.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,50 @@
1-
# Report a bug
1+
# Contributing
2+
3+
## Report a bug or requesting feature
24

35
Reporting bug is an important contribution. Please make sure to include:
46

57
- expected and actual behavior.
6-
- dotnet version that application is compiled on and running with (it may be different - for instance target framework was set to .NET 4.6 for compilaiton, but applicaiton is running on .NET 4.7.3).
8+
- dotnet version that application is compiled on and running with (it may be
9+
different - for instance target framework was set to .NET 4.6 for
10+
compilaiton, but applicaiton is running on .NET 4.7.3).
711
- exception call stack and other artifacts.
812
- if possible - reporo application and steps to reproduce.
913

10-
# How to contribute
14+
## How to contribute
1115

12-
## Before started
16+
### Before started
1317

14-
In order to protect both you and ourselves, you will need to sign the [Contributor License Agreement](https://cla.developers.google.com/clas).
18+
In order to protect both you and ourselves, you will need to sign the
19+
[Contributor License Agreement](https://cla.developers.google.com/clas).
1520

16-
## Build
21+
### Build
1722

18-
You can use Visual Studio 2017 or VS code to contribute. Just open root folder or `OpenCensus.sln` in your editor and follow normal development process.
23+
You can use Visual Studio 2017 or VS code to contribute. Just open root folder
24+
or `OpenCensus.sln` in your editor and follow normal development process.
1925

2026
To build from command line you need `dotnet` version `2.0+`.
2127

22-
```
28+
``` sh
2329
dotnet build OpenCensus.sln
2430
```
2531

26-
## Test
32+
### Test
2733

28-
You can use Visual Studio 2017 or VS code to test your contribution. Open root folder or `OpenCensus.sln` in your editor and follow normal development process.
34+
You can use Visual Studio 2017 or VS code to test your contribution. Open root
35+
folder or `OpenCensus.sln` in your editor and follow normal development
36+
process.
2937

3038
To test from command line you need `dotnet` version `2.0+`.
3139

32-
```
40+
``` sh
3341
dotnet test OpenCensus.sln
3442
```
3543

36-
## Proposing changes
44+
### Proposing changes
3745

3846
Create a Pull Request with your changes. Please add any user-visible changes to
3947
`CHANGELOG.md`. The continuous integration build will run the tests and static
4048
analysis. It will also check that the pull request branch has no merge commits.
4149
When the changes are accepted, they will be merged or cherry-picked by an
42-
OpenCensus repository maintainers.
50+
OpenCensus repository maintainers.

README.md

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,73 @@
11
# OpenCensus .NET SDK - distributed tracing and stats collection framework
22

33
[![Gitter chat][gitter-image]][gitter-url]
4+
45
MyGet: [![MyGet Nightly][opencensus-myget-image]][opencensus-myget-url]
56

6-
OpenCensus is a toolkit for collecting application performance and behavior data. It currently
7-
includes 3 APIs: stats, tracing and tags.
7+
OpenCensus is a toolkit for collecting application performance and behavior
8+
data. It currently includes 3 APIs: stats, tracing and tags.
89

9-
The library is in [Beta](#versioning) stage and APIs are expected to be mostly stable. The
10-
library is expected to move to [GA](#versioning) stage after v1.0.0 major release.
10+
The library is in [Beta](#versioning) stage and APIs are expected to be mostly
11+
stable. The library is expected to move to [GA](#versioning) stage after v1.0.0
12+
major release.
1113

12-
Please join [gitter](https://gitter.im/census-instrumentation/Lobby) for help or feedback on this
13-
project.
14+
Please join [gitter](https://gitter.im/census-instrumentation/Lobby) for help
15+
or feedback on this project.
1416

15-
We encourage contributions. Use tags [up-for-grabs](https://github.com/census-instrumentation/opencensus-csharp/issues?q=is%3Aissue+is%3Aopen+label%3Aup-for-grabs) and [good first issue](https://github.com/census-instrumentation/opencensus-csharp/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) to get started with the project. Follow [CONTRIBUTING](CONTRIBUTING.md) guide to report issues or submit a proposal.
17+
We encourage contributions. Use tags
18+
[up-for-grabs](https://github.com/census-instrumentation/opencensus-csharp/issues?q=is%3Aissue+is%3Aopen+label%3Aup-for-grabs)
19+
and [good first
20+
issue](https://github.com/census-instrumentation/opencensus-csharp/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
21+
to get started with the project. Follow [CONTRIBUTING](CONTRIBUTING.md) guide
22+
to report issues or submit a proposal.
1623

1724
## OpenCensus Quickstart
1825

19-
TBD
26+
### Using Zipkin exporter
27+
28+
Configure Zipkin exporter to see traces in Zipkin UI.
29+
30+
1. Get Zipkin using getting [started
31+
guide](https://zipkin.io/pages/quickstart.html).
32+
2. Start `ZipkinTraceExporter` as below:
33+
34+
``` csharp
35+
var exporter = new ZipkinTraceExporter(
36+
new ZipkinTraceExporterOptions() {
37+
Endpoint = "https://<zipkin-server:9411>/api/v2/spans",
38+
ServiceName = typeof(Program).Assembly.GetName().Name,
39+
},
40+
Tracing.ExportComponent);
41+
exporter.Start();
42+
43+
var span = tracer.SpanBuilder("incoming request").SetSampler(Samplers.AlwaysSample).StartSpan();
44+
Thread.Sleep(TimeSpan.FromSeconds(1));
45+
span.End();
46+
```
2047

2148
## Versioning
2249

2350
This library follows [Semantic Versioning][semver].
2451

25-
**GA**: Libraries defined at a GA quality level are stable, and will not introduce
26-
backwards-incompatible changes in any minor or patch releases. We will address issues and requests
27-
with the highest priority. If we were to make a backwards-incompatible changes on an API, we will
28-
first mark the existing API as deprecated and keep it for 18 months before removing it.
52+
**GA**: Libraries defined at a GA quality level are stable, and will not
53+
introduce backwards-incompatible changes in any minor or patch releases. We
54+
will address issues and requests with the highest priority. If we were to make
55+
a backwards-incompatible changes on an API, we will first mark the existing API
56+
as deprecated and keep it for 18 months before removing it.
2957

30-
**Beta**: Libraries defined at a Beta quality level are expected to be mostly stable and we're
31-
working towards their release candidate. We will address issues and requests with a higher priority.
32-
There may be backwards incompatible changes in a minor version release, though not in a patch
33-
release. If an element is part of an API that is only meant to be used by exporters or other
34-
opencensus libraries, then there is no deprecation period. Otherwise, we will deprecate it for 18
35-
months before removing it, if possible.
36-
58+
**Beta**: Libraries defined at a Beta quality level are expected to be mostly
59+
stable and we're working towards their release candidate. We will address
60+
issues and requests with a higher priority. There may be backwards incompatible
61+
changes in a minor version release, though not in a patch release. If an
62+
element is part of an API that is only meant to be used by exporters or other
63+
opencensus libraries, then there is no deprecation period. Otherwise, we will
64+
deprecate it for 18 months before removing it, if possible.
3765

3866
[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
39-
[gitter-url]: https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
40-
[opencensus-myget-image]: https://img.shields.io/myget/opencensus/vpre/OpenCensus.svg
41-
[opencensus-myget-url]: https://www.myget.org/feed/opencensus/package/nuget/OpenCensus
42-
[semver]: http://semver.org/
67+
[gitter-url]:
68+
https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
69+
[opencensus-myget-image]:
70+
https://img.shields.io/myget/opencensus/vpre/OpenCensus.svg
71+
[opencensus-myget-url]:
72+
https://www.myget.org/feed/opencensus/package/nuget/OpenCensus [semver]:
73+
http://semver.org/

0 commit comments

Comments
 (0)