# How to add labels to sql span?

**URL:** <https://discuss.elastic.co/t/how-to-add-labels-to-sql-span/383901>\
**Category:** Elasticsearch\
**Created:** [December 5, 2025, 5:02pm UTC](https://discuss.elastic.co/t/how-to-add-labels-to-sql-span/383901 "2025-12-05T17:02:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictoRK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/victork/32/146081_2.png) [@VictoRK](https://discuss.elastic.co/u/VictoRK)\
**Post date:** [December 5, 2025, 5:02pm UTC](https://discuss.elastic.co/t/how-to-add-labels-to-sql-span/383901/1 "2025-12-05T17:02:55Z")

</div>

I need to add labels to my autogenerated sql span details in my .NET Web Application.

My agent is started in global.asax and i have the following code:  
`Dim AgentComponents = ElasticApmModule.CreateAgentComponents()`  
`Agent.Setup(AgentComponents)`  
`Agent.Subscribe(New SqlClientDiagnosticSubscriber())`

How Can i add new labels to SQL span details?
