<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0" -->

---
title: ASP.NET Core -Updating the OpenTelemetry configuration
description: Learn how to update the OpenTelemetry configuration in ASP.NET Core, including the recommended versions of .NET and OpenTelemetry. Find out why the error...
canonical: https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: ASP.NET Core -Updating the OpenTelemetry configuration | daily.dev
og:description: Learn how to update the OpenTelemetry configuration in ASP.NET Core, including the recommended versions of .NET and OpenTelemetry. Find out why the error...
og:url: https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0
og:image: https://api.daily.dev/og/posts/7NAZ4xQH0.png
og:image:alt: ASP.NET Core -Updating the OpenTelemetry configuration
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# ASP.NET Core -Updating the OpenTelemetry configuration

**[The Art of Simplicity](https://daily.dev/sources/bartwullems)** · 2 min read · 4 upvotes · 1 comments

## Summary

Learn how to update the OpenTelemetry configuration in ASP.NET Core, including the recommended versions of .NET and OpenTelemetry. Find out why the error 'IServiceCollection' does not contain a definition for 'AddOpenTelemetryTracing' occurred.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://bartwullems.blogspot.com/2024/04/aspnet-core-updating-opentelemetry.html>

## Community discussion

Top comments from developers on daily.dev.

**@atomicib** · 0 upvotes

> Alllrighty... So basically you had an old version of the package, and API changed between the versions, so you had to update the method name?

---

Tags: [#aspnet](https://daily.dev/tags/aspnet), [#azure](https://daily.dev/tags/azure), [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"ASP.NET Core -Updating the OpenTelemetry configuration","url":"https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0"},"datePublished":"2024-04-30T11:36:24.970Z","dateModified":"2026-03-15T05:51:52.982Z","description":"Learn how to update the OpenTelemetry configuration in ASP.NET Core, including the recommended versions of .NET and OpenTelemetry. Find out why the error...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d6d04ce25f6b1aab252043f4c00820d0?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d6d04ce25f6b1aab252043f4c00820d0?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"The Art of Simplicity","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Art of Simplicity","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52b68c70636d44f0901ae7cd107c9438","url":"https://daily.dev/sources/bartwullems"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"aspnet,azure,.net","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Art of Simplicity","item":"https://daily.dev/sources/bartwullems"},{"@type":"ListItem","position":3,"name":"ASP.NET Core -Updating the OpenTelemetry configuration"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/asp-net-core--updating-the-opentelemetry-configuration-7naz4xqh0","comment":[{"@type":"Comment","text":"Alllrighty… So basically you had an old version of the package, and API changed between the versions, so you had to update the method name?","datePublished":"2024-05-06T11:20:59.502Z","url":"https://daily.dev/posts/7NAZ4xQH0#c-cAqaVfoMk","author":{"@type":"Person","name":"Patryk Kotrasiński","url":"https://daily.dev/atomicib","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"}}]}
```

