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

[AutoMerge][Staging] Merging change(s) from otel-js; otel-js-contrib; #207

Conversation

opentelemetrybot
Copy link
Contributor

Changes from otel-js@main (https://github.com/open-telemetry/opentelemetry-js)

Merging otel-js @ 5b0fb7b...

  • commit 5b0fb7b
  • Author: Trent Mick [email protected]
  • Date: Wed Dec 6 08:08:18 2023 -0800
  • fix(instrumentation-http): do not mutate given headers object for outgoing http requests (#4346)
    
  • ...

Auto resolving 8 conflicts to select the master repo version

Summary of changes by file state
UA (Updated <=> Added): 3
AU (Added <=> Updated): 2
UD (Updated <=> Deleted): 1
DD (Deleted <=> Deleted): 2

  • (UA) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts - Unmerged, added by them => checkout theirs
  • (UA) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleFile.ts - Unmerged, added by them => checkout theirs
  • (AU) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts - Added in ours => checkout ours
  • (AU) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts - Added in ours => checkout ours
  • (UD) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/types.ts - Unmerged, deleted by them => remove
  • (UA) auto-merge/js/scripts/update-changelog.js - Unmerged, added by them => checkout theirs
  • (DD) experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts - Removed from both
  • (DD) experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts - Removed from both

Changes from otel-js-contrib@main (https://github.com/open-telemetry/opentelemetry-js-contrib)

Merging otel-js-contrib @ 094fd6f...

  • commit 094fd6f
  • Author: Trent Mick [email protected]
  • Date: Wed Dec 6 08:27:17 2023 -0800
  • test(instrumentation-aws-sdk): fix SQS mock responses for @aws-sdk/client-sqs versions using the AWS JSON 1.0 protocol (#1844)
    
  • ...

Auto resolving 11 conflicts to select the master repo version

Summary of changes by file state
UD (Updated <=> Deleted): 1
UA (Updated <=> Added): 6
AU (Added <=> Updated): 2
DD (Deleted <=> Deleted): 2

  • (UD) auto-merge/contrib/.commitlintrc.yml - Unmerged, deleted by them => remove
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-receive.json - Unmerged, added by them => checkout theirs
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-send-batch.json - Unmerged, added by them => checkout theirs
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-send.json - Unmerged, added by them => checkout theirs
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/src/OpenTelemetryBunyanStream.ts - Unmerged, added by them => checkout theirs
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5-v6.metrics.test.ts - Unmerged, added by them => checkout theirs
  • (AU) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts - Added in ours => checkout ours
  • (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5-v6.test.ts - Unmerged, added by them => checkout theirs
  • (AU) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5.test.ts - Added in ours => checkout ours
  • (DD) plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts - Removed from both
  • (DD) plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5.test.ts - Removed from both

trentm and others added 30 commits November 20, 2023 09:30
Types are included in 'mysql2' now (as of some 2.x release).

The github:types/mysql2 dependency is problematic for dependabot version updates.
See: open-telemetry/opentelemetry-js-contrib#1806 (comment)

Co-authored-by: Marc Pichler <[email protected]>
…s (#1817)

* fix(ci): use opentelemetrybot to sync package-lock.json on release PRs

* fix: comment typo

* fix: token is named RELEASE_PR_TOKEN
* chore: release main

* chore: sync package-lock.json

---------

Co-authored-by: opentelemetrybot <[email protected]>
* fix(instrumentation-net): Don't operate on closed span

* Fix lint
* feat(instrumentation-bunyan): add log sending to Logs Bridge API

This extends the Bunyan instrumentation to automatically add a
Bunyan stream to created loggers that will send log records to
the Logs Bridge API: https://opentelemetry.io/docs/specs/otel/logs/bridge-api/

Now that the instrumentation supports separate "injection" of fields
and "bridging" of log records functionality, this also adds two boolean
options to disable those independently: `enableInjection` and
`enableLogsBridge`.

This also updates the instrumentation to work with ES module usage.

Closes: #1559

* markdown lint fixes

* markdown lint fixes

* catch up with recent core-deps update

* some type tweaks suggested by David

* more specific type

Co-authored-by: Amir Blum <[email protected]>

* use more self-explanatory code for mapping Bunyan level to OTel severity, from blumamir

* export OpenTelemetryBunyanStream for direct usage in Bunyan loggers without the instrumentation

* .apply over .call suggestion

* consistency suggestion

* suggestion to use the longer (perhaps clearer) logger var name

* switch to false-by-default config vars to avoid surprises with undefined values

See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#boolean-value
Suggestion from blumamir.

* document using OpenTelemetryBunyanStream without the instrumentation

* fix https://eslint.org/docs/latest/rules/prefer-spread lint error

* drop options to OpenTelemetryBunyanStream constructor because YAGNI

* temporarily drop CI caching to test theory on unit-test (18) CI failure

* more CI debugging: restore cache, add some 'npm ls -a' to look into NoopContextManager being used

* elide Bunyan 'pid' and 'hostname' fields in OTel log record attributes

Because they are redundant with 'process.pid' and 'host.name'
resource attributes. Add some docs on how to use resource detectors
to the example, because the HostDetector is not on by default in
the NodeSDK.

* update test for having elided 'pid' and 'hostname' fields

* CI debugging: ignore the 'npm ls -a' exit status, they shouldn't break the build

* fix lint and compile errors

* CI debugging: turn on diag DEBUG to test a theory

* turn off diag in this example

* undo CI debugging changes

* update deps to current releases and sync package-lock.json

* disableInjection -> disableLogCorrelation

* disableLogsBridge -> disableLogSending

Avoid using 'bridge' terminology at suggestion from specs that the Bridge API is an internal detail.

* correct the default instrumentation scope name (as discussed earlier)

* tests: fix test for intrumentationScope.name change in previous commit

* fix lint

---------

Co-authored-by: Amir Blum <[email protected]>
Co-authored-by: Hector Hernandez <[email protected]>
* feat: add support for mongodb v6

* chore: lint fix

* chore: revert bump of mongodb

* chore: revert test script

* chore: revert changelog

* chore: filter node versions in TAV

* chore: fix .tav.yml

---------

Co-authored-by: Daniel Dyla <[email protected]>
… FastifyDeprecation warning for 404 request (#1763)

For a 404 `request.routeOptions.url` is undefined. Since [email protected]
when routeOptions was added, we shouldn't fallback to the deprecated
request.routerPath.

This also corrects the assumption that the handler name is "bound ..."
in all cases. E.g. for a 404 it is Fastify's core "basic404" internal
function.

Also add a test that Fastify instrumentation works for ESM usage.

Fixes: open-telemetry/opentelemetry-js-contrib#1757
Co-authored-by: Marc Pichler <[email protected]>
… listener

Fixes a memory leak where unhandled response bodies pile up in node 20
* feat: add script to update changelogs on releases

* fix: address comments

* Apply suggestions from code review

Co-authored-by: Trent Mick <[email protected]>

* fix: apply suggestions from code review

* fix: use packageJson.version instead of version

---------

Co-authored-by: Trent Mick <[email protected]>
fix(instrumentation-http): resume responses when there is no response…
test: make rawRequest HTTP-compliant
dyladan and others added 16 commits November 30, 2023 11:48
…ions (#1840)

* docs(user-interaction): update docs to include examples of config options

* add example to prevent span creation

* fix lint

* address PR comments

* update link to list of events

* syntax updates

Co-authored-by: Martin Kuba <[email protected]>

---------

Co-authored-by: Martin Kuba <[email protected]>
… (#4289)

* feat(sdk-logs): add droppedAttributesCount field to ReadableLogRecord

* chore: check droppedAttributesCount value in test case

* feat(otlp-transformer): make toLogRecord() use ReadableLogRecord.droppedAttributesCount

---------

Co-authored-by: Marc Pichler <[email protected]>
* fix: allow passing in TimeInput for LogRecord

* chore: update changelog
…… (#4334)

* fix: programmatic url and headers take precedence in metric exporters (#2370)

* chore: adjust grpc exporter metrics test

* chore(changelog): update changelog
…metry-js@5b0fb7b)

  - commit 5b0fb7b
  - Author: Trent Mick <[email protected]>
  - Date:   Wed Dec 6 08:08:18 2023 -0800
  -     fix(instrumentation-http): do not mutate given headers object for outgoing http requests (#4346)
  - ...
### Auto resolving 8 conflicts to select the master repo version
Summary of changes by file state
UA (Updated <=> Added): 3
AU (Added <=> Updated): 2
UD (Updated <=> Deleted): 1
DD (Deleted <=> Deleted): 2

 - (UA) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts - Unmerged, added by them => checkout theirs
 - (UA) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleFile.ts - Unmerged, added by them => checkout theirs
 - (AU) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts - Added in ours => checkout ours
 - (AU) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts - Added in ours => checkout ours
 - (UD) auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/types.ts - Unmerged, deleted by them => remove
 - (UA) auto-merge/js/scripts/update-changelog.js - Unmerged, added by them => checkout theirs
 - (DD) experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts - Removed from both
 - (DD) experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts - Removed from both
…opentelemetry-js-contrib@094fd6f)

  - commit 094fd6f
  - Author: Trent Mick <[email protected]>
  - Date:   Wed Dec 6 08:27:17 2023 -0800
  -     test(instrumentation-aws-sdk): fix SQS mock responses for @aws-sdk/client-sqs versions using the AWS JSON 1.0 protocol (#1844)
  - ...
### Auto resolving 11 conflicts to select the master repo version
Summary of changes by file state
UD (Updated <=> Deleted): 1
UA (Updated <=> Added): 6
AU (Added <=> Updated): 2
DD (Deleted <=> Deleted): 2

 - (UD) auto-merge/contrib/.commitlintrc.yml - Unmerged, deleted by them => remove
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-receive.json - Unmerged, added by them => checkout theirs
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-send-batch.json - Unmerged, added by them => checkout theirs
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-aws-sdk/test/mock-responses/sqs-send.json - Unmerged, added by them => checkout theirs
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/src/OpenTelemetryBunyanStream.ts - Unmerged, added by them => checkout theirs
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5-v6.metrics.test.ts - Unmerged, added by them => checkout theirs
 - (AU) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts - Added in ours => checkout ours
 - (UA) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5-v6.test.ts - Unmerged, added by them => checkout theirs
 - (AU) auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5.test.ts - Added in ours => checkout ours
 - (DD) plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts - Removed from both
 - (DD) plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5.test.ts - Removed from both
Processing otel-js
 - (xS) /auto-merge/js/experimental/packages/api-events/src/platform/index.ts - Re-Copying master file as size mismatch 653 !== 631
 - (xS) /auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts - Re-Copying master file as size mismatch 631 !== 653
 - (*E) /auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts - Removing extra file
 - (*E) /auto-merge/js/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts - Removing extra file
 - (*F) /plugins - Removing extra folder plugins
Processing otel-js-contrib
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/examples/README.md - Re-Copying master file
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/examples/app.js - Re-Copying master file
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/examples/app.mjs - Re-Copying master file
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/examples/package.json - Re-Copying master file
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-bunyan/examples/telemetry.js - Re-Copying master file
 - (xM) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-fastify/test/fixtures/use-fastify.mjs - Re-Copying master file
 - (*E) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts - Removing extra file
 - (*E) /auto-merge/contrib/plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5.test.ts - Removing extra file
@MSNev MSNev merged commit caefdfb into open-telemetry:auto-merge/repo-staging Dec 6, 2023
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.