> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0078 - Invalid ActivitySource name

> ActivitySource names should follow reverse-DNS convention

Source: [Al0078InvalidActivitySourceNameAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0078InvalidActivitySourceNameAnalyzer.cs)

## Description

`ActivitySource` names should follow the reverse-DNS naming convention (e.g., `MyCompany.MyService`) to avoid collisions and enable filtering.

## Bad Code

```csharp theme={null}
private static readonly ActivitySource Source = new("orders");
```

## Good Code

```csharp theme={null}
private static readonly ActivitySource Source = new("MyCompany.OrderService");
```

## Properties

* **Category**: OpenTelemetry
* **Severity**: Error
* **Enabled by default**: True
* **Code fix available**: False

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0078.severity = error
```
