-
Notifications
You must be signed in to change notification settings - Fork 81
feat(ibis): add OpenTelemetry tracing logs #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Ibis Server Traced Metrics | ||
|
||
The ibis-server codebase uses OpenTelemetry for tracing. The following spans are traced across different components: | ||
|
||
## Rewriter Module | ||
- `transpile` - Internal span for SQL transpilation operations | ||
- `rewrite` - Internal span for SQL rewriting operations | ||
- `extract_manifest` - Internal span for manifest extraction from SQL | ||
- `external_rewrite` - Client span for external engine rewriting operations | ||
- `embedded_rewrite` - Internal span for embedded engine rewriting operations | ||
|
||
## Substitute Module | ||
- `substitute` - Internal span for model substitution operations | ||
|
||
## Connector Module | ||
- `connector_init` - Internal span for connector initialization | ||
- `connector_query` - Client span for executing queries | ||
- `connector_dry_run` - Client span for dry-running queries | ||
- `describe_sql_for_error_message` - Client span for generating SQL error messages | ||
- `get_schema` - Client span for retrieving schema information | ||
- `duckdb_query` - Internal span for DuckDB queries | ||
- `duckdb_dry_run` - Internal span for DuckDB dry runs | ||
|
||
## API Endpoints (v2) | ||
- `v2_query_{data_source}` - Server span for query operations | ||
- `v2_query_{data_source}_dry_run` - Server span for dry run query operations | ||
- `v2_validate_{data_source}` - Server span for validation operations | ||
- `v2_metadata_tables_{data_source}` - Server span for metadata table listing | ||
- `v2_metadata_constraints_{data_source}` - Server span for metadata constraint listing | ||
- `dry_plan` - Server span for dry planning operations | ||
- `v2_dry_plan_{data_source}` - Server span for data source specific dry planning | ||
- `v2_model_substitute_{data_source}` - Server span for model substitution operations | ||
|
||
## API Endpoints (v3) | ||
- `v3_query_{data_source}` - Server span for query operations | ||
- `v3_query_{data_source}_dry_run` - Server span for dry run query operations | ||
- `v3_dry_plan_{data_source}` - Server span for data source specific dry planning | ||
- `v3_validate_{data_source}` - Server span for validation operations | ||
- `v3_functions_{data_source}` - Server span for function listing | ||
- `v3_model-substitute_{data_source}` - Server span for model substitution operations | ||
|
||
## Utility Functions | ||
- `base64_to_dict` - Internal span for base64 to dictionary conversion | ||
- `to_json` - Internal span for DataFrame to JSON conversion | ||
|
||
## Trace Context | ||
- Each endpoint accepts request headers and properly propagates trace context using the `build_context` function. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @douenergy. It looks great!