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/configuration.md
+5
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,11 @@ parent: EDOT Java
7
7
8
8
# Configuring the EDOT Java Agent
9
9
10
+
EDOT Java instrumentation agent is based on OpenTelemetry Java [SDK](https://github.com/open-telemetry/opentelemetry-java) and [Instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation), and thus supports the following
You need to have completed the steps in the [Quickstart](/quickstart/) section that corresponds to your Elastic deployment model.
19
+
20
+
## Run
21
+
22
+
Use the `-javaagent:` JVM argument with the path to agent jar, this requires to modify the JVM arguments and restart
23
+
the application.
24
+
25
+
```bash
26
+
java \
27
+
-javaagent:/path/to/agent.jar \
28
+
-jar myapp.jar
29
+
```
30
+
31
+
For applications deployed with Kubernetes, we recommend using [OpenTelemetry Operator](./k8s).
32
+
33
+
## Minimal configuration
34
+
35
+
The minimal configuration to send data involves setting the values for `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variables.
36
+
37
+
Configuration of those environment values depends on the deployment model:
38
+
- EDOT Collector running on the application host, accessible with `http://localhost:4318` without authentication, no further configuration is required.
39
+
- EDOT Collector managed by the OpenTelemetry Kubernetes Operator
40
+
-`OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variables are automatically provided by the Operator, no further configuration is required.
Copy file name to clipboardexpand all lines: docs/quickstart/serverless/hosts_vms.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ logs and application traces and send the data through OTLP to your Elastic Serve
24
24
25
25
Retrieve the `Elastic OTLP Endpoint` and the `Elastic API Key` for your Serverless Project by [following these instructions](./#retrieving-connection-details-for-your-serverless-project).
26
26
27
-
Replace `<ELASTIC_OTLP_ENDPOINT>` and `<ELASTIC_API_KEY>` before applying the below command.
27
+
Replace `<ELASTIC_OTLP_ENDPOINT>` and `<ELASTIC_API_KEY>` before applying the command below.
28
28
29
29
*Linux*
30
30
@@ -57,11 +57,12 @@ logs and application traces and send the data through OTLP to your Elastic Serve
57
57
```
58
58
59
59
3. **Run the EDOT Collector**
60
-
61
-
Execute the following command to run the EDOT Collector.
62
60
63
61
{: .note }
64
-
The Collector will open the ports `4317` and `4318` to receive application data from locally running OTel SDKs.
62
+
The Collector will open the ports `4317` and `4318` to receive application data from locally running OTel SDKs without authentication.
63
+
This allows the SDKs to send data without any further configuration needed as they use this endpoint by default.
64
+
65
+
Execute the following command to run the EDOT Collector.
The Operator will provide a deployment of the EDOT Collector and provide the configuration environment variables, thus enabling SDKs and instrumentation to send data to the EDOT Collector without further configuration.
51
+
49
52
4. **Auto-instrument Applications**
50
53
51
54
Add a language-specific annotation to your namespace by replacing `<LANGUAGE>` with one of the supported values (`nodejs`, `java`, `python`, `dotnet` or `go`) in the below command.
@@ -54,6 +57,8 @@ logs collection and application monitoring.
The OpenTelemetry Operator will automatically provide the OTLP endpoint configuration and authentication to the SDKs through environment variables.
61
+
57
62
Restart your deployment to ensure the annotations and auto-instrumentations are applied.
58
63
59
64
For languages where auto-instrumentation is not available, you will need to manually instrument your application. See the [Setup section in the corresponding SDK](../../edot-sdks).
0 commit comments