Skip to content

Commit ce84954

Browse files
authored
Update SPLUNK_PROFILER_CALL_STACK_INTERVAL default (#325)
1 parent 9296bbe commit ce84954

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
### Configuration
6+
7+
#### Enhancements
8+
9+
- `SPLUNK_PROFILER_CALL_STACK_INTERVAL` defaults to `1000` for single-threaded runtimes.
10+
511
### Repository
612

713
#### Enhancements

specification/behaviors.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ instrumentation libraries that contain profiling features.
1212
### Call Stack Sampling
1313

1414
An instrumentation library that has profiling capabilities MUST be able to
15-
sample call stacks at a fixed interval. This default interval MUST default to 10
16-
seconds.
15+
sample call stacks at a fixed interval.
1716

1817
When a language runtime supports threading, stacks MUST be sampled across all
1918
process threads. The samples for all threads SHOULD be taken instantaneously

specification/configuration.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ instance using the following environment variables:
167167
| Name | Default | Description |
168168
|----------------------------------------|---------|------------------------------------------------------------------------------------------|
169169
| `SPLUNK_ACCESS_TOKEN` | | Access token added to exported data. [1] |
170-
| `SPLUNK_PROFILER_CALL_STACK_INTERVAL` | 10000 | Interval at which call stacks are sampled (in ms) [5] |
170+
| `SPLUNK_PROFILER_CALL_STACK_INTERVAL` | [7] | Interval at which call stacks are sampled (in ms) [5] |
171171
| `SPLUNK_PROFILER_ENABLED` | false | Whether CPU profiling is enabled. [2] [5] |
172172
| `SPLUNK_PROFILER_LOGS_ENDPOINT` | * | Where profiling data is sent. Defaults to the value in `OTEL_EXPORTER_OTLP_ENDPOINT` [5] |
173173
| `SPLUNK_PROFILER_MEMORY_ENABLED` | false | Whether memory profiling is enabled. [2] [6] |
@@ -199,6 +199,7 @@ instance using the following environment variables:
199199
MUST be set to `true`.
200200
- [5]: Applies only to instrumentation libraries with CPU profiling capabilities.
201201
- [6]: Applies only to instrumentation libraries with memory profiling capabilities.
202+
- [7]: `10000` for multi-threaded runtimes, `1000` for single-threaded runtimes.
202203

203204
In addition to Splunk-specific environment variables, the following
204205
[OpenTelemetry environment

0 commit comments

Comments
 (0)