Skip to content

apm: Add integration policy variable tail_sampling_ttl to configure apm-server.sampling.tail.ttl#13348

Merged
carsonip merged 6 commits intoelastic:mainfrom
carsonip:apm-tbs-ttl
May 21, 2025
Merged

apm: Add integration policy variable tail_sampling_ttl to configure apm-server.sampling.tail.ttl#13348
carsonip merged 6 commits intoelastic:mainfrom
carsonip:apm-tbs-ttl

Conversation

@carsonip
Copy link
Member

@carsonip carsonip commented Mar 28, 2025

Proposed commit message

apm: Add policy variable tail_sampling_ttl to configure apm-server.sampling.tail.ttl.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Build the integration, run on EA and check EA diagnostics for computed config.

Related issues

Screenshots

@carsonip carsonip changed the title apm: Add config for tail-based sampling TTL apm: Add integration policy variable tail_sampling_ttl to configure apm-server.sampling.tail.ttl Mar 28, 2025
@andrewkroh andrewkroh added the Integration:apm Elastic APM label Mar 28, 2025
@carsonip
Copy link
Member Author

carsonip commented Apr 8, 2025

Tested with elastic-package and EA, confirmed that in the computed config ttl is present with default value

        sampling:
            tail:
                enabled: true
                interval: 1m
                policies:
                    - sample_rate: 0.1
                storage_limit: 0GB
                ttl: 30m
        shutdown_timeout: 30s
        ssl:

@carsonip carsonip marked this pull request as ready for review May 8, 2025 14:24
@carsonip carsonip requested a review from a team as a code owner May 8, 2025 14:24
@elasticmachine
Copy link

💚 Build Succeeded

History

@elastic-sonarqube
Copy link

@carsonip carsonip merged commit 4fbacb5 into elastic:main May 21, 2025
8 checks passed
carsonip added a commit that referenced this pull request May 28, 2025
Backport 2 PRs from 9.1 to 8.19:
- TBS ttl config #13348
- TBS discard_write_on_failure config #13950
anupratharamachandran pushed a commit to anupratharamachandran/integrations that referenced this pull request Jun 2, 2025
… `apm-server.sampling.tail.ttl` (elastic#13348)

apm: Add policy variable tail_sampling_ttl to configure apm-server.sampling.tail.ttl. Use `^9.1.0` kibana version constraint to prevent apm integration from being bundled in a new 9.0 patch version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:apm Elastic APM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants