Skip to content

Commit 1e0795f

Browse files
committed
Add azure identity lib
1 parent 3278675 commit 1e0795f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/function/fastapp/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def setup_tracer(app: FastAPI):
3838
if settings.APPLICATIONINSIGHTS_CONNECTION_STRING:
3939
credential = DefaultAzureCredential()
4040
exporter = AzureMonitorTraceExporter.from_connection_string(
41-
settings.APPLICATIONINSIGHTS_CONNECTION_STRING,
42-
credential=credential
41+
settings.APPLICATIONINSIGHTS_CONNECTION_STRING, credential=credential
4342
)
4443
tracer = TracerProvider(resource=Resource({SERVICE_NAME: "api"}))
4544
tracer.add_span_processor(BatchSpanProcessor(exporter))

code/function/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# The Python Worker is managed by Azure Functions platform
33
# Manually managing azure-functions-worker may cause unexpected issues
44

5+
azure-identity~=1.13.0
56
azure-functions~=1.14.0
67
fastapi~=0.96.1
78
aiohttp~=3.8.4

0 commit comments

Comments
 (0)