WindmillWWindmill
Powered by
BjarneB
Windmill•15mo ago•
19 replies
Bjarne

Python requirement issues

Hey,

I am trying to write a script that makes use of the azure opentelemetry sdk.
When I run the script below locally, it just works. But when running in windmill. I get this error:
ModuleNotFoundError: No module named 'azure.monitor.opentelemetry'
ModuleNotFoundError: No module named 'azure.monitor.opentelemetry'


The script:
#requirements:
#azure-monitor-events-extension
#azure-monitor-opentelemetry

import logging
import os

from azure.monitor.events.extension import track_event
from azure.monitor.opentelemetry import configure_azure_monitor

# Configure the connection to the application insights instance
configure_azure_monitor(connection_string=wmill.get_variable("f/playground/appi_connection_string"))

def main(application_name: str) -> None:
    # Name indicates PROD / DEV split
    event_name = f"Running flow xyz"

    # Send the event to app insights
    track_event(event_name)
#requirements:
#azure-monitor-events-extension
#azure-monitor-opentelemetry

import logging
import os

from azure.monitor.events.extension import track_event
from azure.monitor.opentelemetry import configure_azure_monitor

# Configure the connection to the application insights instance
configure_azure_monitor(connection_string=wmill.get_variable("f/playground/appi_connection_string"))

def main(application_name: str) -> None:
    # Name indicates PROD / DEV split
    event_name = f"Running flow xyz"

    # Send the event to app insights
    track_event(event_name)


I don't understand what I am doing wrong. Am I missing an important limitation of the windmill python requirements system?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Python pycache
fooosieeeFfooosieee / help
15mo ago
Python imports
rovertoRroverto / help
2y ago
Gsheets & Python
Chris @ Konnect3dCChris @ Konnect3d / help
2y ago
Python LDAP
Jeremy WordenJJeremy Worden / help
2y ago