Skip to content

Commit

Permalink
Merge pull request #37484 from mskacelik/scheduler-docs-tracing-update
Browse files Browse the repository at this point in the history
Updated scheduler docs (tracing)
  • Loading branch information
gsmet committed Dec 5, 2023
2 parents b35bb0c + ab721f4 commit 7a20eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/scheduler-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ So for example a Property Expression with the default value `"off"` can be used
void myMethod() { }
----


[#identity]
=== Identity

By default, a unique identifier is generated for each scheduled method.
Expand Down Expand Up @@ -417,7 +417,7 @@ If the xref:smallrye-metrics.adoc[SmallRye Metrics extension] is present, then a

== OpenTelemetry Tracing

If `quarkus.scheduler.tracing.enabled` is set to `true` and the xref:opentelemetry.adoc[OpenTelemetry extension] is present then the `@io.opentelemetry.instrumentation.annotations.WithSpan` annotation is added automatically to every `@Scheduled` method. As a result, each execution of this method has a new `io.opentelemetry.api.trace.Span` associated.
If `quarkus.scheduler.tracing.enabled` is set to `true` and the xref:opentelemetry.adoc[OpenTelemetry extension] is present then every job execution, either defined with the `@Scheduled` annotation or scheduled programmatically, automatically creates a span named after the job's <<identity>>.

[[virtual_threads]]
== Run @Scheduled methods on virtual threads
Expand Down

0 comments on commit 7a20eef

Please sign in to comment.