> ## 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.

# AL0073 - [Traced] requires non-empty ActivitySourceName

> Must identify the span source with a non-empty name

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

## Description

The `[Traced]` attribute requires a non-empty `ActivitySourceName` to identify which `ActivitySource` the generated spans belong to.

## Bad Code

```csharp theme={null}
[Traced("")] // empty name
public partial class OrderService { }
```

## Good Code

```csharp theme={null}
[Traced("MyService.Orders")]
public partial class OrderService { }
```

## Properties

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

## Configuration

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