# @splunk/secureapp-agent

OpenTelemetry instrumentation for [Splunk Secure Application](https://help.splunk.com/en/splunk-observability-cloud/monitor-application-security/introduction-to-splunk-secure-application).

> **Internal use only.** This package is intended for use within Splunk products.

## Installation

This package is distributed with [`@splunk/otel`](https://www.npmjs.com/package/@splunk/otel)

## Usage

SecureApp instrumentation can be enabled in `@splunk/otel` via `SPLUNK_SECUREAPP_AGENT_ENABLED` environment variable.

## Configuration

All options are optional.

| Environment variable<br>Option | Type | Default | Description |
|---|---|---|---|
| `SPLUNK_SECUREAPP_DEPENDENCY_SCAN_INTERVAL`<br>`dependencyScanInterval` | `number` | `86400000` (24 h) | Interval between scans in milliseconds |
| `SPLUNK_SECUREAPP_DEPENDENCY_INITIAL_DELAY`<br>`initialDelaySeconds` | `number` | `60` | Delay before the first scan in seconds |
| `SPLUNK_SECUREAPP_RUNTIME_PACKAGES_ONLY`<br>`runtimePackagesOnly` | `boolean` | `true` | Only report packages that were loaded at runtime |
| `SPLUNK_SECUREAPP_NO_SELF_REPORT`<br>`noSelfReport` | `boolean` | `false` | Exclude this agent's own dependencies from the report |

## License

See [LICENSE](./LICENSE).
