Skip to content

Instantly share code, notes, and snippets.

View JacksonWeber's full-sized avatar

Jackson Weber JacksonWeber

View GitHub Profile
@JacksonWeber
JacksonWeber / workaround-custom-logger-33975.ts
Created March 25, 2026 05:18
Workaround for Azure/azure-sdk-for-js#33975 — Override Azure Monitor distro loggers with a custom DiagLogger
/**
* Workaround for https://github.com/Azure/azure-sdk-for-js/issues/33975
*
* Problem:
* @azure/monitor-opentelemetry's internal Logger class unconditionally
* takes over both the OpenTelemetry diagnostic logger (via diag.setLogger())
* and the Azure SDK logger (via AzureLogger.log = ...) when it initializes.
* The Logger class is not exported, and initialization is non-deterministic
* (lazy singleton on first internal use), making it hard to override.
*
@JacksonWeber
JacksonWeber / README.md
Created March 23, 2026 20:16
ApplicationInsights v3.x ESM/NestJS workaround for IIS/iisnode (ref: microsoft/ApplicationInsights-node.js#1423)
@JacksonWeber
JacksonWeber / README.md
Created March 21, 2026 02:24
Workaround for ApplicationInsights-node.js #1411 - Error.cause chain support

Error.cause Chain Workaround for Application Insights Node.js

Workaround for microsoft/ApplicationInsights-node.js#1411.

Problem

Node.js v16.9+ supports Error.cause for chaining exceptions, but the Application Insights Node.js SDK only captures the top-level error. The TelemetryExceptionData.exceptions array always contains a single entry even though the schema supports chains via id/outerId.

@JacksonWeber
JacksonWeber / distro_arch_board.md
Last active July 27, 2023 06:02 — forked from lmolkova/distro_arch_board.md
Azure Monitor Distro and Exporter GA review

Scope

TODO

Hero scenarios

TODO

.NET

KeyError at /path/
1445170200
Request Method: GET
Request URL: http://localhost/path/?end=42.3881952%2C-72.5233084452446&format=json&start=42.3950825%2C-72.5269116&threshold=1
Django Version: 2.2.7
Python Executable: /usr/local/bin/python3
Python Version: 3.8.0
Python Path: ['/app', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages']
Server time: Sun, 8 Dec 2019 04:54:33 +0000