getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
566 stars 203 forks source link

Unable to Deploy Azure Function when using Sentry v4.x #3289

Closed hemesh closed 1 month ago

hemesh commented 1 month ago

Package

Sentry.Extensions.Logging

.NET Flavor

.NET Core

.NET Version

8.0.0

OS

Linux

SDK Version

4.0.0

Self-Hosted Sentry Version

Sentry 22.3.0.dev0

Steps to Reproduce

  1. Set up an Azure Function project with a Timer and Queue function present. It should be targetting .NET8 Isolated and be running a Linux consumption plan
  2. Add the Sentry.Extensions.Logging v4.x library (v3.x works)
  3. Initialise via app configuration.
  4. Build and deploy via Azure Pipelines Tasks (latest ones)

Expected Result

Should deploy without issue and functions start

Actual Result

image (same error shown within Azure Portal looking at Function App)

hemesh commented 1 month ago

Actually, I didn't realise there's an SDK for Azure Functions now made, so I'll give this a go as it extends the default logger too.