Skip to content

Commit

Permalink
Add process resource detector (#564)
Browse files Browse the repository at this point in the history
* Add process resource detector

* Lint
  • Loading branch information
pmcollins authored Dec 2, 2024
1 parent 34d71b6 commit 77d9023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/splunk_otel/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"OTEL_LINK_ATTRIBUTE_COUNT_LIMIT": "",
"OTEL_SPAN_LINK_COUNT_LIMIT": "1000",
"OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT": "12000",
"OTEL_EXPERIMENTAL_RESOURCE_DETECTORS": "host",
"OTEL_EXPERIMENTAL_RESOURCE_DETECTORS": "host,process",
"OTEL_TRACES_SAMPLER": "always_on",
}

Expand Down
2 changes: 2 additions & 0 deletions tests/ott_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def on_stop(self, telemetry, stdout: str, stderr: str, returncode: int) -> None:
assert get_attribute_str(attributes, "telemetry.distro.version")
assert get_attribute_str(attributes, "telemetry.distro.name") == "splunk-opentelemetry"

assert get_attribute(attributes, "process.pid")

def is_http(self):
return False

Expand Down

0 comments on commit 77d9023

Please sign in to comment.