You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/_edot-sdks/java/setup/index.md
+36-35
Original file line number
Diff line number
Diff line change
@@ -27,58 +27,59 @@ You can download the latest release version or snapshot version of the EDOT Java
27
27
28
28
You need to have completed the steps in the [Quickstart](/quickstart/) section that corresponds to your Elastic deployment model.
29
29
30
-
## Setting up the Agent
30
+
## Configure the Java agent
31
31
32
-
1.**Configure the agent**
32
+
The minimal configuration to send data involves setting the values for `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variables.
33
33
34
-
The minimal configuration to send data involves setting the values for `OTEL_EXPORTER_OTLP_ENDPOINT`and `OTEL_EXPORTER_OTLP_HEADERS` environment variables.
34
+
We also recommend setting the `service.name` resource attribute explicitly with `OTEL_SERVICE_NAME` as it allows to qualify captured data and group multiple service instances together.
35
35
36
-
Configuration of those environment values depends on the deployment model:
36
+
Here is an example to set `OTEL_EXPORTER_OTLP_ENDPOINT`, `OTEL_EXPORTER_OTLP_HEADERS` and `OTEL_SERVICE_NAME` environment variables:
EDOT Collector is accessible with `http://localhost:4318` without authentication, no further configuration is required.
44
+
For more advanced configuration, see [Configuration](../configuration) section.
41
45
42
-
*Self-managed EDOT Collector*
46
+
Configuration of those environment values depends on the deployment model:
43
47
44
-
`OTEL_EXPORTER_OTLP_ENDPOINT` should be set to the OTLP endpoint of your selfmanaged EDOT Collector.
45
-
46
-
If EDOT Collector requires authentication, `OTEL_EXPORTER_OTLP_HEADERS` should be set to include `Authorization=ApiKey <ELASTIC_API_KEY>` (comma-separated key=value list).
47
-
48
-
*Elastic Managed OTLP endpoint*
48
+
### Local EDOT Collector
49
49
50
-
Use [these guides](../../../quickstart/serverless/index) to retrieve the `<ELASTIC_OTLP_ENDPOINT>` and the `<ELASTIC_API_KEY>`.
50
+
EDOT Collector is accessible with `http://localhost:4318` without authentication, no further configuration is required.
51
+
The `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variables do not have to be set.
51
52
52
-
-`OTEL_EXPORTER_OTLP_ENDPOINT` should be set to `<ELASTIC_OTLP_ENDPOINT>`
53
-
-`OTEL_EXPORTER_OTLP_HEADERS` should be set to include `Authorization=ApiKey <ELASTIC_API_KEY>` (comma-separated key=value list).
53
+
**Self-managed EDOT Collector**
54
54
55
-
*Kubernetes*
56
-
57
-
Connection to the EDOT Collector is managed by the OTel Kubernetes Operator, [follow the Quickstart Guides](../../../quickstart/index) for Kubernetes.
55
+
`OTEL_EXPORTER_OTLP_ENDPOINT` should be set to the OTLP endpoint of your selfmanaged EDOT Collector.
56
+
57
+
If EDOT Collector requires authentication, `OTEL_EXPORTER_OTLP_HEADERS` should be set to include `Authorization=ApiKey <ELASTIC_API_KEY>` (comma-separated key=value list).
58
58
59
+
### Elastic Managed OTLP endpoint
59
60
60
-
We also recommend setting the `service.name` resource attribute explicitly:
61
+
Use [these guides](../../../quickstart/serverless/index) to retrieve the `<ELASTIC_OTLP_ENDPOINT>` and the `<ELASTIC_API_KEY>`.
61
62
62
-
TODO
63
+
-`OTEL_EXPORTER_OTLP_ENDPOINT` should be set to `<ELASTIC_OTLP_ENDPOINT>`
64
+
-`OTEL_EXPORTER_OTLP_HEADERS` should be set to include `Authorization=ApiKey <ELASTIC_API_KEY>` (comma-separated key=value list).
63
65
64
-
Set the `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variables. For example:
0 commit comments