Skip to content

feat(instrumentation): structured event logging interface#2341

Open
robinld wants to merge 1 commit into
DataJunction:mainfrom
robinld:feat/instrumentation-events
Open

feat(instrumentation): structured event logging interface#2341
robinld wants to merge 1 commit 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 077dd03
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a5b0f929004e00008cffc46

"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.

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