Skip to content

Commit 7494f08

Browse files
committed
feat(logs): add options to enable logging
1 parent e8022fe commit 7494f08

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": "^7.2||^8.0",
1616
"guzzlehttp/psr7": "^2.1.1",
1717
"jean85/pretty-package-versions": "^1.5||^2.0",
18-
"sentry/sentry": "^4.14.1",
18+
"sentry/sentry": "^4.15.0",
1919
"symfony/cache-contracts": "^1.1||^2.4||^3.0",
2020
"symfony/config": "^4.4.20||^5.0.11||^6.0||^7.0",
2121
"symfony/console": "^4.4.20||^5.0.11||^6.0||^7.0",

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function getConfigTreeBuilder(): TreeBuilder
8585
->max(1.0)
8686
->info('The sampling factor to apply to profiles. A value of 0 will deny sending any profiles, and a value of 1 will send all profiles. Profiles are sampled in relation to traces_sample_rate')
8787
->end()
88+
->booleanNode('enable_logs')->end()
8889
->booleanNode('attach_stacktrace')->end()
8990
->booleanNode('attach_metric_code_locations')->end()
9091
->integerNode('context_lines')->min(0)->end()
@@ -112,6 +113,7 @@ public function getConfigTreeBuilder(): TreeBuilder
112113
->scalarNode('before_send_transaction')->end()
113114
->scalarNode('before_send_check_in')->end()
114115
->scalarNode('before_send_metrics')->end()
116+
->scalarNode('before_send_logs')->end()
115117
->variableNode('trace_propagation_targets')->end()
116118
->arrayNode('tags')
117119
->useAttributeAsKey('name')

0 commit comments

Comments
 (0)