Skip to content

feat(instrumentation): structured event logging interface - #2341

Merged
robinld merged 2 commits into
DataJunction:mainfrom
robinld:feat/instrumentation-events
Jul 20, 2026
Merged

feat(instrumentation): structured event logging interface#2341
robinld merged 2 commits into
DataJunction:mainfrom
robinld:feat/instrumentation-events

Conversation

@robinld

@robinld robinld commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Add events.emit(event_type, **fields), by default a no-op. Deployments install a publisher with set_publisher(). emit() never raises into application code. Publish failures are counted and logged with a rate-limited warning.

Emit a query_requested event from build_metrics_sql.

Add events.emit(event_type, **fields), by default a no-op.
Deployments install a publisher with set_publisher().
emit() never raises into application code. Publish failures are counted
and logged with a rate-limited warning.

Emit a query_requested event from build_metrics_sql.
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 930ecbb
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a5c275a2456370008627d9b

"query_requested",
metrics=list(metrics),
dimensions=list(dimensions),
engine=dialect.name,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the filters as well or is this enough?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't do it because I was concerned about PII & size. Maybe I should just add the unique columns referenced & orderby & limit while I'm at it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on just the unique columns referenced

@robinld
robinld merged commit c377412 into DataJunction:main Jul 20, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants