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

update the QUICKSTART for 0.15.0 #2615

Merged
merged 5 commits into from
Feb 1, 2021

Conversation

jkwatson
Copy link
Contributor

No description provided.

QUICKSTART.md Outdated Show resolved Hide resolved
QUICKSTART.md Outdated Show resolved Hide resolved
QUICKSTART.md Outdated Show resolved Hide resolved
SdkTracerProvider tracerProvider = SdkTracerProvider.builder()
.setTraceConfig(half)
.setSampler(Sampler.alwaysOn())
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

QUICKSTART.md Outdated
@@ -401,11 +394,11 @@ in bulk. Multiple Span processors can be configured to be active at the same tim
```java
SdkTracerProvider tracerProvider = SdkTracerProvider.builder()
.addSpanProcessor(
MultiSpanProcessor.create(Arrays.asList(
SpanProcessor.composite(
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess multiple calls to addSpanProcessor would be more natural, and ends up with us creating the composite

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

QUICKSTART.md Outdated
JaegerGrpcSpanExporter jaegerExporter = JaegerGrpcSpanExporter.builder()
.setServiceName("example").setChannel(jaegerChannel).setDeadline(30000)
.build()
.setChannel(jaegerChannel).setTimeout(30, TimeUnit.SECONDS)
Copy link
Contributor

Choose a reason for hiding this comment

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

How about updating this to setEndpoint("localhost:3336")?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

jkwatson and others added 3 commits January 29, 2021 19:17
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
QUICKSTART.md Outdated
Comment on lines 125 to 134
void a() {
Span parentSpan = tracer.spanBuilder("a").startSpan();
void c() {
Span parentSpan = tracer.spanBuilder("c").startSpan();
try(Scope scope = parentSpan.makeCurrent()) {
b();
d();
} finally {
parentSpan.end();
}
}
void b() {
Span childSpan = tracer.spanBuilder("b")
void d() {
Span childSpan = tracer.spanBuilder("d")
Copy link
Member

Choose a reason for hiding this comment

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

Please avoid 1 character function names in examples, also using b and d makes things even harder to see.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought you liked c! ;)

I'll clean this up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the way, the only reason this even got touched is that I'm starting to think about auto-generating these docs from a template java file, and I needed it all to compile locally. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #2615 (fcdb6f7) into main (bfe0e19) will increase coverage by 87.64%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2615       +/-   ##
===========================================
+ Coverage        0   87.64%   +87.64%     
- Complexity      0     2633     +2633     
===========================================
  Files           0      315      +315     
  Lines           0     8733     +8733     
  Branches        0      892      +892     
===========================================
+ Hits            0     7654     +7654     
- Misses          0      791      +791     
- Partials        0      288      +288     
Impacted Files Coverage Δ Complexity Δ
...metry/sdk/metrics/common/InstrumentDescriptor.java 100.00% <0.00%> (ø) 2.00% <0.00%> (?%)
...java/io/opentelemetry/sdk/trace/data/LinkData.java 100.00% <0.00%> (ø) 3.00% <0.00%> (?%)
...io/opentelemetry/sdk/metrics/SdkMeterProvider.java 100.00% <0.00%> (ø) 11.00% <0.00%> (?%)
...metry/sdk/extension/aws/resource/DockerHelper.java 87.50% <0.00%> (ø) 6.00% <0.00%> (?%)
...opentelemetry/sdk/metrics/AbstractAccumulator.java 100.00% <0.00%> (ø) 2.00% <0.00%> (?%)
...opentelemetry/api/DefaultOpenTelemetryBuilder.java 100.00% <0.00%> (ø) 4.00% <0.00%> (?%)
...r/logging/otlp/HexEncodingStringJsonGenerator.java 88.23% <0.00%> (ø) 6.00% <0.00%> (?%)
...y/sdk/testing/exporter/InMemoryMetricExporter.java 100.00% <0.00%> (ø) 8.00% <0.00%> (?%)
...elemetry/sdk/extension/zpages/LatencyBoundary.java 85.71% <0.00%> (ø) 6.00% <0.00%> (?%)
...dk/extension/trace/export/DisruptorEventQueue.java 81.52% <0.00%> (ø) 13.00% <0.00%> (?%)
... and 305 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bfe0e19...fcdb6f7. Read the comment docs.

@jkwatson jkwatson merged commit 13effbd into open-telemetry:main Feb 1, 2021
@jkwatson jkwatson deleted the update_quickstart branch February 1, 2021 17:42
bogdandrutu added a commit to bogdandrutu/opentelemetry-java that referenced this pull request Feb 7, 2021
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.

3 participants