-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from msmakouz/update-version
Updating config version, adding otel
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\RoadRunner\Console\Configuration\Section; | ||
|
||
final class Otel extends AbstractSection | ||
{ | ||
private const NAME = 'otel'; | ||
|
||
public function render(): array | ||
{ | ||
return [ | ||
self::NAME => [ | ||
'insecure' => false, | ||
'compress' => false, | ||
'client' => 'http', | ||
'exporter' => 'otlp', | ||
'custom_url' => '', | ||
'service_name' => 'RoadRunner', | ||
'service_version' => '1.0.0', | ||
'endpoint' => '127.0.0.1:4318' | ||
] | ||
]; | ||
} | ||
|
||
public static function getShortName(): string | ||
{ | ||
return self::NAME; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters