forked from raystack/compass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: instrument service with OpenTelemetry (#47)
- Add Config.Telemetry for configuring Newrelic and OpenTelemetry. - Deprecate Config.Newrelic - recommended to use Config.Telemetry.Newrelic instead. - Deprecate Newrelic.Appname - recommended to use Config.Telemetry.AppName instead. - Instrument the following: - internal/server/v1beta1.APIServer: Counter for compass.asset.update with the following attributes: - compass.update_method: asset_upsert_patch/asset_upsert/ asset_upsert_patch_without_lineage. - asset.type: job/table etc. - asset.service: caramlstore/firehose etc. - operation.success: true/false. - core/asset/service.Service: Counter for compass.asset.operation with the following attributes: - compass.asset_operation: GetAssetByID/GetAssetByVersion/ DeleteAsset. - asset.identifier: UUID/URN - operation.success: true/false. - internal/store/elasticsearch.DiscoveryRepository: Histogram for compass.es.client.duration with the following attributes: - es.operation: search/index_exists/create_index/index/ delete_by_query. - es.status_code: ok/mapper_parsing_exception/ cluster_block_exception. - compass.discovery_operation: Search/GroupAssets/Suggest/Upsert/ DeleteByID/DeleteByURN. - Integrate OpenTelemetry libraries: - https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/host - https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/google.golang.org/grpc/otelgrpc - https://github.com/nhatthm/otelsql - https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/runtime Co-authored-by: Haveiss <[email protected]>
- Loading branch information
1 parent
b70fd31
commit 94d5baf
Showing
29 changed files
with
855 additions
and
203 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.