Skip to content

Tenant RegExpression is not valid for valid X-Scope-OrgID header values #202

@ecuzziol

Description

@ecuzziol

Which version of Serilog.Sinks.Grafana.Loki are you using?

v8.2.0-beta.1

Which version of .NET are you using?

4.8

Describe the bug

the new tenant property is not allowing some valid characters for X-Scope-OrgID like the - character.

The regexp used in the BaseLokiHttpClient is not correct

To Reproduce

set the tenant property with some string like mytest-tenant

Expected behavior

the configuration should be valid and we should not receive
System.ArgumentException: 'mytest-tenant' argument does not follow rule for Tenant ID

Log/SelfLog output or exception with stacktrace

No response

Application or code sample, which could be used to reproduce a bug

No response

Additional context

No response

I have read the documentation

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is neededinvestigation neededThe investigation is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions