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

# AL0012 - Deprecated semantic convention attribute

> This attribute name has been deprecated in the OpenTelemetry semantic conventions

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

## Description

This attribute name has been deprecated in the OpenTelemetry semantic conventions.

## Bad Code

```csharp theme={null}
activity.SetTag("http.method", "GET");
```

## Good Code

```csharp theme={null}
activity.SetTag("http.request.method", "GET");
```

## Properties

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

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0012.severity = warning
```
