Skip to content
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

Add AWS instrumentation for DynamoDB and disable HTTP instrumentation for Sentry requests #1758

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

krzysztofzuraw
Copy link
Member

Scope of the PR

  • Properly disable HTTP instrumentation for Sentry requests. Added AwsInstrumentation factory that can be used to auto instrument DynamoDB calls.

Related issues

Checklist

@krzysztofzuraw krzysztofzuraw requested a review from a team as a code owner March 6, 2025 12:21
Copy link

changeset-bot bot commented Mar 6, 2025

🦋 Changeset detected

Latest commit: 3691b21

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@saleor/apps-otel Minor
saleor-app-segment Patch
saleor-app-avatax Patch
saleor-app-cms Patch
saleor-app-klaviyo Patch
saleor-app-products-feed Patch
saleor-app-search Patch
saleor-app-smtp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Mar 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-avatax ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-cms ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-klaviyo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-products-feed ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-segment ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm
saleor-app-smtp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 1:02pm

@@ -4,7 +4,6 @@ export const createHttpInstrumentation = () => {
return new HttpInstrumentation({
requireParentforIncomingSpans: true,
requireParentforOutgoingSpans: true,
ignoreOutgoingRequestHook: (request) =>
request.hostname === "ingest.sentry.io" || request.path === "/v1/logs",
Copy link
Member Author

Choose a reason for hiding this comment

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

we no longer use logs from OTEL and integration already disables calls to v1/traces / v1/metrics etc

Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 44.01%. Comparing base (dd772dd) to head (3691b21).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
apps/avatax/src/instrumentations/otel-node.ts 0.00% 2 Missing ⚠️
apps/segment/src/instrumentations/otel-node.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1758      +/-   ##
==========================================
- Coverage   44.01%   44.01%   -0.01%     
==========================================
  Files         661      661              
  Lines      295941   295943       +2     
  Branches     2010     2010              
==========================================
  Hits       130258   130258              
- Misses     165263   165265       +2     
  Partials      420      420              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Mar 6, 2025

Differences Found

⚠️ 6 packages or licenses were added.

Expand
License	Package
<<missing>> browser-assert
<<missing>> eval
<<missing>> require-like
<<missing>> year
Apache-2.0	@opentelemetry/instrumentation-aws-sdk
Apache-2.0	@opentelemetry/propagation-utils

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
CC BY-SA 4.0 1
Packages
  • @cspell/dict-en-common-misspellings
CC-BY-3.0 1
Packages
  • spdx-exceptions
GPL-3.0 1
Packages
  • store2
MIT (http://mootools.net/license.txt) 1
Packages
  • slick
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
SEE LICENSE IN LICENSE.md 1
Packages
  • lightcookie
WTFPL 1
Packages
  • opener
CC-BY-4.0 2
Packages
  • @saleor/macaw-ui
  • caniuse-lite
Unlicense 2
Packages
  • @sinonjs/text-encoding
  • big-integer
BlueOak-1.0.0 3
Packages
  • jackspeak
  • package-json-from-dist
  • path-scurry
CC0-1.0 3
Packages
  • language-subtag-registry
  • spdx-license-ids
  • type-fest
<<missing>> 8
Packages
  • browser-assert
  • bruno
  • busboy
  • eval
  • json-query
  • require-like
  • streamsearch
  • year
MPL-2.0 10
Packages
  • axe-core
  • eslint-config-turbo
  • eslint-plugin-turbo
  • turbo
  • turbo-darwin-64
  • turbo-darwin-arm64
  • turbo-linux-64
  • turbo-linux-arm64
  • turbo-windows-64
  • turbo-windows-arm64
BSD-2-Clause 31
Packages
  • @base2/pretty-print-object
  • @typescript-eslint/parser
  • @typescript-eslint/typescript-estree
  • @yarnpkg/esbuild-plugin-pnp
  • cheerio-select
  • css-select
  • css-what
  • damerau-levenshtein
  • domelementtype
  • domhandler
  • domutils
  • dotenv
  • dotenv-expand
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • And 11 more...
BSD-3-Clause 53
Packages
  • @humanwhocodes/object-schema
  • @protobufjs/aspromise
  • @protobufjs/base64
  • @protobufjs/codegen
  • @protobufjs/eventemitter
  • @protobufjs/fetch
  • @protobufjs/float
  • @protobufjs/inquire
  • @protobufjs/path
  • @protobufjs/pool
  • @protobufjs/utf8
  • @saleor/eslint-plugin-saleor-app
  • @sentry/cli
  • @sentry/cli-darwin
  • @sentry/cli-linux-arm
  • @sentry/cli-linux-arm64
  • @sentry/cli-linux-i686
  • @sentry/cli-linux-x64
  • @sentry/cli-win32-i686
  • @sentry/cli-win32-x64
  • And 33 more...
ISC 72
Packages
  • @isaacs/cliui
  • @istanbuljs/load-nyc-config
  • @saleor/app-sdk
  • @ungap/structured-clone
  • abbrev
  • ansi-align
  • anymatch
  • aproba
  • are-we-there-yet
  • ast-types-flow
  • boolbase
  • c8
  • chownr
  • cli-width
  • cliui
  • color-support
  • concat-with-sourcemaps
  • console-control-strings
  • electron-to-chromium
  • eslint-import-resolver-typescript
  • And 52 more...
Apache-2.0 195
Packages
  • @ampproject/remapping
  • @aws-crypto/crc32
  • @aws-crypto/crc32c
  • @aws-crypto/ie11-detection
  • @aws-crypto/sha1-browser
  • @aws-crypto/sha256-browser
  • @aws-crypto/sha256-js
  • @aws-crypto/supports-web-crypto
  • @aws-crypto/util
  • @aws-sdk/abort-controller
  • @aws-sdk/chunked-blob-reader
  • @aws-sdk/client-dynamodb
  • @aws-sdk/client-s3
  • @aws-sdk/client-sso
  • @aws-sdk/client-sso-oidc
  • @aws-sdk/client-sts
  • @aws-sdk/config-resolver
  • @aws-sdk/core
  • @aws-sdk/credential-provider-env
  • @aws-sdk/credential-provider-http
  • And 175 more...
MIT 1673
Packages
  • @0no-co/graphql.web
  • @aashutoshrathi/word-wrap
  • @algolia/cache-browser-local-storage
  • @algolia/cache-common
  • @algolia/cache-in-memory
  • @algolia/client-account
  • @algolia/client-analytics
  • @algolia/client-common
  • @algolia/client-personalization
  • @algolia/client-search
  • @algolia/logger-common
  • @algolia/logger-console
  • @algolia/recommend
  • @algolia/requester-browser-xhr
  • @algolia/requester-common
  • @algolia/requester-node-http
  • @algolia/transporter
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • @arr/every
  • And 1653 more...


export const createAwsInstrumentation = () => {
return new AwsInstrumentation({
suppressInternalInstrumentation: true,
Copy link
Member

Choose a reason for hiding this comment

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

what does it mean? can you add comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 3691b21 (#1758)

lkostrowski
lkostrowski previously approved these changes Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants