Skip to content

Commit

Permalink
finalized the java azure function example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitchsplunk committed Dec 5, 2024
1 parent 04ef91a commit 777e4af
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ deployment environments:
| AWS ECS Fargate | [Link](./instrumentation/java/aws-ecs) | [Link](./instrumentation/dotnet/aws-ecs) | [Link](./instrumentation/nodejs/aws-ecs) | [Link](./instrumentation/python/aws-ecs) | [Link](./instrumentation/go/aws-ecs) |
| AWS EKS Fargate | [Link](./instrumentation/java/aws-eks-fargate) | | | | |
| AWS Lambda Function | [Link](./instrumentation/java/aws-lambda) | [Link](./instrumentation/dotnet/aws-lambda) | [Link](./instrumentation/nodejs/aws-lambda) | [Link](./instrumentation/python/aws-lambda) | [Link](./instrumentation/go/aws-lambda) |
| Azure Function | | [Link](./instrumentation/dotnet/azure-functions) | | | |
| Azure Function | [Link](./instrumentation/java/azure-functions) | [Link](./instrumentation/dotnet/azure-functions) | | | |
| Google Cloud Function | | | | | |
| Azure Web Apps | | | | | |

Expand Down
6 changes: 3 additions & 3 deletions instrumentation/dotnet/azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,17 @@ for our Azure Function App:
In the Azure section of Visual Studio Code, right click on the deployment slot of interest
and select `Deploy to Slot`.

![Deploy](./images/deploy.png)
<img src="./images/deploy.png" alt="Deploy" width="200"/>

It will ask you to confirm:

![Confirm Deploy](./images/confirm-deploy.png)
<img src="./images/confirm-deploy.png" alt="Confirm Deploy" width="200"/>

### Test the Azure Function

Copy the function URL from the Azure function:

![Function URL](./images/function-url.png)
<img src="./images/function-url.png" alt="Function URL" width="200"/>

Then point your browser to that URL, it should return:

Expand Down
8 changes: 4 additions & 4 deletions instrumentation/java/azure-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ It requires the following dependencies to be added to the [pom.xml](./pom.xml) f
````

Note that we've added `opentelemetry-log4j-context-data-2.17-autoconfigure` as a dependency as well, which injects the trace ID and span ID from an active span into Log4j's context data. Refer to [ContextData Instrumentation for Log4j2]https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/log4j/log4j-context-data/log4j-context-data-2.17/library-autoconfigure)
Note that we've added `opentelemetry-log4j-context-data-2.17-autoconfigure` as a dependency as well, which injects the trace ID and span ID from an active span into Log4j's context data. Refer to [ContextData Instrumentation for Log4j2](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/log4j/log4j-context-data/log4j-context-data-2.17/library-autoconfigure)
for further details.


Expand Down Expand Up @@ -221,17 +221,17 @@ we need to set the APPLICATIONINSIGHTS_ENABLE_AGENT, OTEL_SERVICE_NAME, DEPLOYME
In the Azure section of Visual Studio Code, right click on the deployment slot of interest
and select `Deploy to Slot`.

![Deploy](./images/deploy.png)
<img src="./images/deploy.png" alt="Deploy" width="200"/>

It will ask you to confirm:

![Confirm Deploy](./images/confirm-deploy.png)
<img src="./images/confirm-deploy.png" alt="Confirm Deploy" width="200"/>

### Test the Azure Function

Copy the function URL from the Azure function:

![Function URL](./images/function-url.png)
<img src="./images/function-url.png" alt="Function URL" width="200"/>

Then point your browser to that URL, it should return:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 777e4af

Please sign in to comment.