Skip to main content

Splunk SecureApp OpenTelemetry Extension for Python applications

Project description

Splunk SecureApp OpenTelemetry Extension

OpenTelemetry Python extension for integrating Splunk SecureApp with OpenTelemetry. This extension monitors runtime dependencies and reports them via OpenTelemetry logs.

Installation

# Install from PyPI
pip install secureapp-python-agent

# Install with OpenTelemetry instrumentation
pip install secureapp-python-agent splunk-opentelemetry

# Run your application with automatic instrumentation
opentelemetry-instrument python your_app.py

## Configuration

The extension can be configured using environment variables:

| Environment Variable                        | Default | Description                                               |
|---------------------------------------------|---------|-----------------------------------------------------------|
| `SPLUNK_SECUREAPP_AGENT_ENABLED`            | `true`  | Enable or disable the agent completely                    |
| `OTEL_LOGS_EXPORTER`                        | `otlp`  | Log exporter type: `otlp`, `console`, or `none`           |
| `SPLUNK_SECUREAPP_DEPENDENCY_INITIAL_DELAY` | `60.0`  | Initial delay (seconds) before dependency tracking starts |
| `SPLUNK_SECUREAPP_DEPENDENCY_SCAN_INTERVAL` | `86400` | Interval (seconds) between dependency scans (24 hours)    |
| `SPLUNK_SECUREAPP_LOG_LEVEL_INFO            |  NOTSET | Standard Python Log Levels                                |

## Features

### Runtime Dependency Monitoring

The extension monitors third-party Python packages loaded at runtime and reports
them through OpenTelemetry logs with:
- Package name and version
- Import timestamp
- Standard library exclusion for performance optimization
- Low overhead (<10MB memory, <100ms startup impact)

### OpenTelemetry Integration

- Sends dependency data as structured logs via configurable exporters
- Compatible with the OpenTelemetry Collector and Splunk Observability backends
- Lightweight implementation with optimized performance

## Compatibility

### OpenTelemetry Versions

The extension is compatible with OpenTelemetry versions 1.39.x plus

### Python Versions

Supported Python versions:
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
- Python 3.14

## Performance Considerations

The SecureApp agent is designed with minimal performance impact:
- Startup overhead: <100ms
- Memory overhead: <10MB
- Optimizations:
  - Lazy imports for better startup performance
  - Standard library detection to avoid unnecessary scanning
  - Configurable scan intervals
  - Efficient batch processing for telemetry data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secureapp_python_agent-26.6.0.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secureapp_python_agent-26.6.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file secureapp_python_agent-26.6.0.tar.gz.

File metadata

  • Download URL: secureapp_python_agent-26.6.0.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for secureapp_python_agent-26.6.0.tar.gz
Algorithm Hash digest
SHA256 186ea991bc23ee2df7bb1f0ce4f5d47d53ccfd10933c47e5c4dd3839d3d8b644
MD5 a8372a279d4fb78843f4d2757b476d1d
BLAKE2b-256 449ac44f9621ec55a38edfc9fdeca0ef2bd5a81378fdc46cf7d2e9e04ab67eda

See more details on using hashes here.

File details

Details for the file secureapp_python_agent-26.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for secureapp_python_agent-26.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8b23c1f270b7e7de63951e6818ed1a4a42ce96b22339bb7cf5fd9ff0e4f60f
MD5 edf60640feec41b7d6c8fd628ec77066
BLAKE2b-256 273cd396071a4af04aa9972989124a25b863e049fd8cbccc71b46c48e0ee88c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page