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

fix: resolved more logging objects structure #1510

Merged
merged 9 commits into from
Jan 14, 2025
Merged

Conversation

abhilash-sivan
Copy link
Contributor

@abhilash-sivan abhilash-sivan commented Jan 14, 2025

Fixes more log object structure and also added optional chaining for type safety

@abhilash-sivan abhilash-sivan changed the title fix: resolved more logging objects structure and added optional chain… fix: resolved more logging objects structure Jan 14, 2025
@abhilash-sivan abhilash-sivan marked this pull request as ready for review January 14, 2025 06:39
@abhilash-sivan abhilash-sivan requested a review from a team as a code owner January 14, 2025 06:39
packages/shared-metrics/src/util/nativeModuleRetry.js Outdated Show resolved Hide resolved
packages/shared-metrics/src/util/nativeModuleRetry.js Outdated Show resolved Hide resolved
packages/serverless/src/backend_connector.js Outdated Show resolved Hide resolved
@abhilash-sivan abhilash-sivan marked this pull request as draft January 14, 2025 08:03
@abhilash-sivan abhilash-sivan self-assigned this Jan 14, 2025
@abhilash-sivan abhilash-sivan marked this pull request as ready for review January 14, 2025 09:20
packages/collector/src/metrics/transmissionCycle.js Outdated Show resolved Hide resolved
'Received an invalid secrets configuration from the Instana host agent, attribute matcher is not a string: $s',
agentResponse.secrets.matcher
'Received an invalid secrets configuration from the Instana host agent, attribute matcher is not a string: ' +
`${agentResponse.secrets.matcher}`
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpik: Join all three modifications into one template literal.

packages/collector/src/cmdline.js Outdated Show resolved Hide resolved
'%s: %s',
packageJsonPath,
parseErr.message
`${packageJsonPath}: ${parseErr?.message}.`
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpik: join the strings to one template literal

'%s: %s.',
packageJsonPath,
err.message
`${packageJsonPath}: ${err?.message}.`
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpik: join the strings to one template literal

'able to see details about this dependency within Instana.',
dependency,
parseErr.message
`Failed to identify version of ${dependency} dependency due to: ${parseErr?.message}.` +
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpik: join the strings to one template literal

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

Pre-approving. Thanks for taking care!

@abhilash-sivan abhilash-sivan merged commit bd4c9bb into main Jan 14, 2025
1 check passed
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.

3 participants