Skip to content

How to enrich the logger with custom properties? #642

Closed
@empz

Description

@empz

Running some Azure Function (runtime 3) with Python 3.7 and Application Insights configured.

Doing logging.info("message") works. This get sent as a TRACE to AppInsights. But it's not very useful if we can't enrich an execution's logging context with custom properties so that we can easily query by these afterwards.

Is this even supported on Azure Functions for Python?

What's the relation between Python Azure Functions and the Opencensus library which is shown as the recommended AI SDK for Python?

Or should I just use a 3rd party logging framework (i.e. Sentry, Datadog, etc)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions