Skip to content

Commit

Permalink
Merge pull request #42 from msmakouz/update-version
Browse files Browse the repository at this point in the history
Updating config version, adding otel
  • Loading branch information
butschster authored Apr 18, 2023
2 parents 3b994f6 + 83a9f3f commit 468c4a6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions src/Configuration/Section/Otel.php
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;
}
}
2 changes: 1 addition & 1 deletion src/Configuration/Section/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final class Version extends AbstractSection
{
private const NAME = 'version';
private const CONFIG_VERSION = '2.7';
private const CONFIG_VERSION = '3';

public function render(): array
{
Expand Down

0 comments on commit 468c4a6

Please sign in to comment.