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

# AL0085 - Invalid attribute value

> Attribute values must conform to semantic convention format

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

## Description

Span or metric attribute values must conform to the expected format defined by OpenTelemetry semantic conventions (e.g., HTTP methods must be uppercase).

## Bad Code

```csharp theme={null}
activity?.SetTag("http.request.method", "get"); // should be uppercase
```

## Good Code

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

## Properties

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

## Configuration

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