OTel Java agent does not appear to load in Function Worker under the Flex Consumption hosting plan
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the linked sample application and the azure-functions-java-opentelemetry README, then compare the Dedicated and Flex Consumption startup behavior. Check the deployed artifact layout and JAVA_OPTS configuration described in the issue. Done means identifying why the agent is not loaded on Flex Consumption and documenting a verified troubleshooting step or fix.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there,
I'm trying this sample application https://github.com/Azure-Samples/functions-quickstart-java-azd-otel, which out of the box only enables OTel for the Function host. When I follow the README for azure-functions-java-opentelemetry to enable OTel for the Function app, it works fine if the Functions hosting plan is Dedicated--there are worker startup logs from the OTel Java agent showing its version, and I get the automatica middleware spans for each function invocation plus custom telemetry collected via the OTel API.
However, if the Function is on a Flex Consumption plan, there isn't any worker log showing the OTel Java agent is loaded and there's no telemetry from the application.
I've confirmed using Microsoft Azure Storage Explorer that the artifact deployed to blob storage has the OTel Java agent, this is the unzipped directory structure:
.
├── first_http_function
│ └── function.json
├── host.json
├── java-otel-cascade-1.0-SNAPSHOT.jar
├── lib
│ ├── azure-functions-java-library-3.3.0.jar
│ ├── azure-functions-java-opentelemetry-1.1.0.jar
│ ├── opentelemetry-api-1.65.0.jar
│ ├── opentelemetry-common-1.65.0.jar
│ └── opentelemetry-context-1.65.0.jar
├── opentelemetry-javaagent.jar
├── second_http_function
│ └── function.json
└── servicebus_queue_trigger
└── function.json
And the Function app's environment variable settings includes this for loading the agent:
{
"name": "JAVA_OPTS",
"value": "-javaagent:opentelemetry-javaagent.jar",
"slotSetting": false
},
I've also tried adding the OTEL_JAVAAGENT_DEBUG: true setting but that didn't result in any more info.
Really apppreciate any insight or further troubleshooting help!
- Lingua principale
- Java
- Stelle
- 4
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azure-functions-java-additions
-
Migrate to Junit5Apertaarea:java-functions
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Separate class to another artifact not used by function customerForse di nuovo libera @kaibocai l’ha presa 1482 giorni fa e non c’è nessuna pull request aperta. Apertaarea:java-functions
Azure/azure-functions-java-additions#12 · 1 commento · 1 assegnatario ·
Tutte le issue di Azure/azure-functions-java-additions
Issue simili
-
pdfium-drift
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
Stirling-Tools/JPDFium#176 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hiero-ledger/hiero-consensus-node#27712 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
Vakore/ZappierGames#162 ·
-
Improve README documentation clarity and fix minor wording issuesForse già presa @simplesilence l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
resilience4j/resilience4j#2567 ·
I maintainer di solito rispondono entro 6 giorni
-
Priority/High
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
wso2/dpdp-accelerator#417 ·
I maintainer di solito rispondono entro 1 giorno