@@ -38,15 +38,15 @@ The full path to the auto instrumentation JAR (provided by the installer).
3838#### ` generate_service_name ` (optional)
3939
4040Whether to disable service name generation by the .so. If set to "true" (the default), the .so will attempt to generate
41- a service name from the Java command arguments. If set to "false", it will not set the service name, leaving it to be
42- generated by the Java auto-instrumentation library.
43-
41+ a service name from the Java command arguments, or provide a hard-coded service name if ` service_name ` is set. If set to
42+ "false", it will not set the service name, leaving it to be generated by the Java auto-instrumentation library.
4443#### ` service_name ` (optional)
4544
4645This is an optional override for the service name that would otherwise be generated by the shared object before Java
4746startup. By default, this line is commented out, but can be uncommented to override the generated name. If this
4847parameter is set, all instrumented Java applications on this host will have the specified service name (via the
49- OTEL_SERVICE_NAME environment variable).
48+ OTEL_SERVICE_NAME environment variable). If this override is set and ` generate_service_name ` is also explicitly set to
49+ ` false ` , that parameter will win, and the service name will not be set.
5050
5151### resource_attributes (optional -- typically set by the installer script)
5252
@@ -58,6 +58,35 @@ Java instrumentation jar. Typically, it will be set to something like:
5858
5959to set the deployment environment for the Splunk backend.
6060
61+ ### disable_telemetry (optional)
62+
63+ Set this value to ` true ` to disable the preloader from sending the ` splunk.linux-autoinstr.executions ` metric to the
64+ local collector. Default: ` false ` .
65+
66+ ### generate_service_name (optional)
67+
68+ Set this value to ` false ` to prevent the preloader from setting the ` OTEL_SERVICE_NAME ` environment variable.
69+ Default: ` true ` . If this value is ` false ` , the preloader will not set ` OTEL_SERVICE_NAME ` , and the soon-to-be running
70+ Java instrumentation library will attempt to set it instead. In the future, this will be the default behavior.
71+
72+ ### enable_profiler (optional)
73+
74+ Set this value to ` true ` to pass ` -Dsplunk.profiler.enabled=true ` to the starting Java executable, which will enable
75+ [ AlwaysOn CPU Profiling] ( https://docs.splunk.com/Observability/apm/profiling/get-data-in-profiling.html ) .
76+ Default: ` false ` .
77+
78+ ### enable_profiler_memory (optional)
79+
80+ Set this value to ` true ` to pass ` -Dsplunk.profiler.memory.enabled=true ` to the starting Java executable, which will
81+ enable
82+ [ AlwaysOn Memory Profiling] ( https://docs.splunk.com/Observability/apm/profiling/get-data-in-profiling.html ) .
83+ Default: ` false ` .
84+
85+ ### enable_metrics (optional)
86+
87+ Set this value to ` true ` to pass ` -Dsplunk.metrics.enabled=true ` to the starting Java executable, which will enable
88+ [ exporting metrics] ( https://github.com/signalfx/splunk-otel-java/blob/main/docs/metrics.md ) . Default: ` false ` .
89+
6190### Syntax
6291
6392To add a comment or comment out a line, start it with a ` # ` .
@@ -79,7 +108,8 @@ This environment variable contains a `-javaagent` flag set to the full path of t
79108
80109e.g. ` JAVA_TOOL_OPTIONS='-javaagent:/usr/lib/splunk-instrumentation/splunk-otel-javaagent.jar' `
81110
82- This variable is populated by the .so by concatenating the ` java_agent_jar ` attribute the config to a ` -javaagent: ` prefix.
111+ This variable is populated by the .so by concatenating the ` java_agent_jar ` attribute in the config to a ` -javaagent: `
112+ prefix, and then appending any additional system properties specified in the configuration file.
83113
84114#### OTEL_SERVICE_NAME
85115
@@ -93,7 +123,7 @@ _Meta: link to docs about how service name is used and why it's required._
93123#### OTEL_RESOURCE_ATTRIBUTES
94124
95125This environment variable contains a list of name-value pairs (separated by ` = ` s) passed on to the Java instrumentation
96- jar.
126+ jar.
97127
98128This variable is set directly from the optional ` resource_attributes ` attribute in the config.
99129
0 commit comments