File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tests/Integration/Symfony/OtelSdkBundle/Mock Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 99class SpanExporter implements SpanExporterInterface
1010{
1111 private ?string $ logFile ;
12+ private ?string $ serviceName ;
1213
13- public function __construct (?string $ logFile = null )
14+ public function __construct (?string $ serviceName = null , ? string $ logFile = null )
1415 {
16+ $ this ->serviceName = $ serviceName ;
1517 $ this ->logFile = $ logFile ;
1618 }
1719
1820 public static function fromConnectionString (string $ endpointUrl , string $ name , string $ args ): self
1921 {
20- return new self ();
22+ return new self ($ name , $ args );
2123 }
2224
2325 public function export (iterable $ spans ): int
@@ -35,6 +37,11 @@ public function forceFlush(): bool
3537 return true ;
3638 }
3739
40+ public function getServiceName (): ?string
41+ {
42+ return $ this ->serviceName ;
43+ }
44+
3845 public function getLogFile (): ?string
3946 {
4047 return $ this ->logFile ;
You can’t perform that action at this time.
0 commit comments