



logger.addHandler(AzureLogHandler( connection_string='InstrumentationKey=xxxxx-xxxxxx-xxxxxx-xxxxxxx') ) Import logging from _exporter import AzureLogHandler logger = logging.getLogger(_name_) # TODO: replace the all-zero GUID with your instrumentation key. Name: example-environment channels: - conda-forge dependencies: - python - numpy - pip - pip: - opencensus-ext-azure Azure Synapse Spark logs runtime errors to Application insights Using open census library to push error logs to Azure monitor Prerequisite
