Skip to content

Commit d66e836

Browse files
breedx-splkopentelemetrybottheletterf
authored
Add docs for @WithSpan params. (#6543)
Co-authored-by: opentelemetrybot <[email protected]> Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
1 parent 964720e commit d66e836

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

content/en/docs/zero-code/java/agent/annotations.md

+19
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,25 @@ types listed below, then the span will not be ended until the future completes.
8080
- [io.reactivex.Flowable](https://reactivex.io/RxJava/2.x/javadoc/index.html?io/reactivex/Flowable.html)
8181
- [io.reactivex.parallel.ParallelFlowable](https://reactivex.io/RxJava/2.x/javadoc/index.html?io/reactivex/parallel/ParallelFlowable.html)
8282

83+
### Parameters
84+
85+
The `@WithSpan` attribute supports the following optional parameters to allow
86+
customization of spans:
87+
88+
| name | type | default | description |
89+
| ---------------- | ----------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
90+
| `kind` | `SpanKind` (enum) | `INTERNAL` | The [kind of span](/docs/specs/otel/trace/api/#spankind). |
91+
| `inheritContext` | `boolean` | `true` | Since 2.14.0. Controls whether or not the new span will be parented in the existing (current) context. If `false`, a new context is created. |
92+
93+
Example parameter usage:
94+
95+
```java
96+
@WithSpan(kind = SpanKind.CLIENT, inheritContext = false)
97+
public void myMethod() {
98+
<...>
99+
}
100+
```
101+
83102
## Adding attributes to the span with `@SpanAttribute`
84103

85104
When a [span](/docs/concepts/signals/traces/#spans) is created for an annotated

content/ja/blog/2025/ai-agent-observability/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ issue: https://github.com/open-telemetry/opentelemetry.io/issues/6389
88
sig: SIG GenAI Observability
99
date: 2025-03-06
1010
default_lang_commit: f2a520b85d72db706bff91d879f5bb10fd2e7367
11+
drifted_from_default: true
1112
cSpell:ignore: genai Guangya PydanticAI Sujay
1213
---
1314

content/ja/docs/collector/deployment/agent.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: エージェント
33
description: コレクターにシグナルを送信し、そこからバックエンドに送信する理由と方法
44
weight: 2
55
default_lang_commit: b34ebe22b71962da96b898eb39a666ed57d447fe
6+
drifted_from_default: true
67
cSpell:ignore: prometheusremotewrite
78
---
89

content/ja/docs/collector/deployment/gateway/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: ゲートウェイ
33
description: シグナルを単一のOTLPエンドポイントに送信し、そこからバックエンドに送信する理由と方法
44
weight: 3
55
default_lang_commit: b34ebe22b71962da96b898eb39a666ed57d447fe
6+
drifted_from_default: true
67
# prettier-ignore
78
cSpell:ignore: filelogreceiver hostmetricsreceiver hostnames loadbalancer loadbalancing resourcedetectionprocessor
89
---

content/ja/docs/what-is-opentelemetry.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: OpenTelemetryとは
33
description: OpenTelemetryが何であり、何でないかについての簡単な説明。
44
weight: 150
55
default_lang_commit: 44059882
6+
drifted_from_default: true
67
---
78

89
- OpenTelemetryは、[オブザーバビリティ](/docs/concepts/observability-primer/#what-is-observability)フレームワークであり、[トレース](/docs/concepts/signals/traces/)[メトリクス](/docs/concepts/signals/metrics/)[ログ](/docs/concepts/signals/logs/)のようなテレメトリーデータを作成・管理するためにデザインされたツールキットです。

content/pt/docs/concepts/instrumentation/_index.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Instrumentação
33
description: Como o OpenTelemetry facilita a instrumentação
44
weight: 15
55
default_lang_commit: 82bd738d51426acb34e126b230a8a1281f193e3e
6+
drifted_from_default: true
67
---
78

89
Para que um sistema seja observável, ele deve ser **instrumentado**: ou seja, o

static/refcache.json

+4
Original file line numberDiff line numberDiff line change
@@ -9739,6 +9739,10 @@
97399739
"StatusCode": 206,
97409740
"LastSeen": "2025-02-06T02:17:59.999Z"
97419741
},
9742+
"https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#spankind": {
9743+
"StatusCode": 206,
9744+
"LastSeen": "2025-03-13T17:21:15.569829279Z"
9745+
},
97429746
"https://github.com/open-telemetry/opentelemetry-specification/blob/v1.14.0/specification/sdk-environment-variables.md#general-sdk-configuration": {
97439747
"StatusCode": 200,
97449748
"LastSeen": "2025-02-06T02:17:12.345Z"

0 commit comments

Comments
 (0)