Skip to content

Commit 57c7e59

Browse files
committed
Allow jaeger batch size to be configurable
1 parent 8641357 commit 57c7e59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"symfony/config": "^4.3",
1414
"symfony/http-kernel": "^4.3",
1515
"symfony/dependency-injection": "^4.3",
16-
"code-tool/jaeger-client-php": "^3"
16+
"code-tool/jaeger-client-php": "^3.1"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "@stable"

src/Resources/services.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters:
1111
env(JAEGER_DEBUG_ENV): 'debug'
1212
env(JAEGER_DEBUG_COOKIE): 'debug'
1313
env(JAEGER_SERVICE_NAME): '%service_name%'
14+
env(JAEGER_SPAN_BATCH): '16'
1415
services:
1516
spl.stack:
1617
class: SplStack
@@ -42,7 +43,7 @@ services:
4243
arguments: ['@id.generator.span', '@jaeger.sampler']
4344
client.thrift:
4445
class: Jaeger\Client\ThriftClient
45-
arguments: ['%env(JAEGER_SERVICE_NAME)%', '@thrift.agent']
46+
arguments: ['%env(JAEGER_SERVICE_NAME)%', '@thrift.agent', '%env(JAEGER_SPAN_BATCH)%']
4647
thrift.agent:
4748
class: Jaeger\Thrift\Agent\AgentClient
4849
arguments: ['@thrift.protocol']

0 commit comments

Comments
 (0)