Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseHttpCorrelation for function app with TimerTrigger and HttpTrigger gives Error #581

Open
HLobik63 opened this issue Nov 26, 2024 · 1 comment
Labels
correlation All issues related to correlating telemetry support All issues related to questions and supporting customers

Comments

@HLobik63
Copy link

Describe the bug
With .net8-library Arcus.Observability.Correlation Version="3.0.0", when we have a function app which contains 2 functions, one with a TimerTrigger and 1 with a HttpTrigger, we get an error message for the first function, saying that the function doesn't have a HttpTrigger.

To Reproduce
Create a function app that contains both TimerTriggers and HttpTriggers, and add library Arcus.Observability.Correlation Version="3.0.0.

Expected behavior
Being able to use UseHttpCorrelation() within a function app that contains both TimerTriggers and HttpTriggers.

Additional context
Occurred after migrating from .NET5 to .NET8.

  • Version
    Arcus.Observability.Correlation Version="3.0.0
@stijnmoreels
Copy link
Member

Hi @HLobik63 , great for your use of Arcus.
The problem you're refering too, is expected behavior. The .UseHttpCorrelation() is only meant to be used in HTTP-scenarios, hence the exception.
We haven't had time to investigate in supporting Time-triggered Functions, but you're always welcome to investigate those yourself. Tip: you can still use Arcus Observability if you build on top of the .AddCorrelation(). See the correlation docs for more info.

@stijnmoreels stijnmoreels added support All issues related to questions and supporting customers correlation All issues related to correlating telemetry labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correlation All issues related to correlating telemetry support All issues related to questions and supporting customers
Projects
None yet
Development

No branches or pull requests

2 participants