Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating config version, adding otel #42

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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