-
Notifications
You must be signed in to change notification settings - Fork 607
Release 10.2.0 #3459
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
Release 10.2.0 #3459
Changes from all commits
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
d188c0c
WIP: Logging instrumentation
hannahramadan 1dbd5f1
WIP: add attributes
hannahramadan f8cc1a1
WIP: Updates to add_logging_event_attributes
hannahramadan 28f657f
Fix attribute adding
hannahramadan 3ed8954
Update chain path and instrumentation
hannahramadan 83d6e5c
Local decorating and tests
hannahramadan 3b9a8d6
add envfile
hannahramadan c78dd88
Merge branch 'dev' into logging_gem_instrumentation
hannahramadan 53fd84d
Add changelog
hannahramadan d9f5175
rubocop
hannahramadan b6ebf36
resolve merge conflict error
hannahramadan 968dc45
testing test break
hannahramadan 8baf351
refactor decorating logic
hannahramadan c64b02a
Small updates
hannahramadan f0d2144
Add mdc support
hannahramadan 49db1ad
rubocop
hannahramadan 720631b
Create an external request segment using OTel attributes
kaylareopelle 41d6cf3
Use OTel's INVALID span constant
kaylareopelle 6e7088e
Start a normal segment if there isn't a URI
kaylareopelle decffe0
add new config
tannalynn 0435f88
update changelog
tannalynn 02c81d3
Test updates
hannahramadan b78cef4
rubocop
hannahramadan c2e1841
Add logging metric
hannahramadan f16d0ac
Edit tests
hannahramadan 6d87de5
test updates
hannahramadan b60e492
Updates to severity check
hannahramadan d4d41f6
Small changelog wording
hannahramadan 55fec2b
Create datastore segments for db client spans
kaylareopelle 1161caa
update eslint in package.json s
tannalynn 330682d
Update CHANGELOG.md
tannalynn 48587ef
defer recording the otel bridge metrics
tannalynn 58fce8e
rubocop
hannahramadan 7259be4
add comment
tannalynn 6b78c63
space
tannalynn ef0f054
no space
tannalynn 9e6ec3a
Merge pull request #3410 from newrelic/spike-otel-attribute-mapping
kaylareopelle 0dce5c2
Add instrumentation registry to tracer provider
kaylareopelle 57962af
Update default for opentelemetry.traces.enabled
kaylareopelle 41a5448
Add instrumentation scope
kaylareopelle ae7642e
Exclude instrumentation before it's installed
kaylareopelle c1b1c32
Fix context bug
kaylareopelle 88cf595
Remove old comment
hannahramadan 00d7cd5
Merge pull request #3428 from newrelic/update_eslint
tannalynn 03530da
Merge pull request #3424 from newrelic/truncate_max_backframes_location
tannalynn b184981
Merge pull request #3429 from newrelic/otel_bridge_metric_issue
tannalynn 10579c6
Merge branch 'dev' into otel-registry
kaylareopelle 6bcb15d
Update exclude list order precedence
kaylareopelle c879b02
Merge branch 'otel-registry' of https://github.com/newrelic/newrelic-…
kaylareopelle a91488f
Fix merge conflict mistake
kaylareopelle 04284a2
Add regression test for error raised
kaylareopelle 0ea4406
Merge pull request #3432 from newrelic/add-instrumentation-scope
kaylareopelle 5bc1b21
Merge pull request #3427 from newrelic/otel-db-attribute-mapping
kaylareopelle 8a7b1d3
Apply suggestion from @kaylareopelle
kaylareopelle 37c77c5
Rubocop
kaylareopelle 94f416a
detect vendor metadata parallel config
tannalynn fe06944
add test
tannalynn 1dcef03
add changelog entry
tannalynn 7579840
add more tests
tannalynn 09b3c39
Merge pull request #3430 from newrelic/otel-registry
kaylareopelle 29463e8
Prefix mdc attributes with `context.`
hannahramadan 2128174
Merge branch 'dev' into logging_gem_instrumentation
hannahramadan 29469de
Merge pull request #3434 from newrelic/fix-context-bug
kaylareopelle f498b0d
pin dalli test versions
tannalynn ed250cc
space
tannalynn 30c60de
remove space
tannalynn 7fb5572
Merge pull request #3445 from newrelic/remove_dalli_5
tannalynn dd4cc24
Translate server attributes for old conventions
kaylareopelle b3f3265
Update server transaction names
kaylareopelle 985ec8c
Cleanup
kaylareopelle f173c56
Fix intermittent failures
kaylareopelle dec3e4d
feat: add agent metadata action - step 1
mvicknr 25f7fff
Merge pull request #3439 from newrelic/vendor_detect_parallel_config
tannalynn 88d4a77
Prepare config for launch
kaylareopelle 56fae92
Update tests to use instrumentation not on exclude
kaylareopelle 7d82bb8
Update excluded namespaces
hannahramadan e9cec11
Update default source example
hannahramadan a290df6
Merge pull request #3448 from newrelic/mvick/add-agent-metadata-actio…
tannalynn 15ba99e
feat: add agent metadata action - step 2
mvicknr 8143953
Merge pull request #3450 from newrelic/mvick/add-agent-metadata-actio…
tannalynn f9b48d4
Merge branch 'dev' into logging_gem_instrumentation
hannahramadan 8444c60
Merge pull request #3420 from newrelic/logging_gem_instrumentation
hannahramadan adf6f0d
Merge pull request #3433 from newrelic/server-attr-translation
kaylareopelle 28df1db
Merge pull request #3442 from newrelic/update-exclude-config
kaylareopelle 94fd259
chore: Update metadata action version
mvicknr 0c49161
Merge pull request #3451 from newrelic/mvick/add-agent-metadata-actio…
kaylareopelle d278d68
Refactor TransactionPatch
hannahramadan 68e3795
Refactor TracePatch
hannahramadan d7316ca
Beep beep rubocop
hannahramadan e5d784b
Move TracePatch to own file
hannahramadan 47b5b0b
Move TracePatch tests to own file
hannahramadan af78fa0
rubocop
hannahramadan a9b0e11
Merge branch 'dev' into update_transaction_patch_logic
hannahramadan be8ec90
Reorg prepend calls
hannahramadan a1e5a98
Merge pull request #3452 from newrelic/update_transaction_patch_logic
hannahramadan f6d64a6
Finish OTel span before forcing finish
hannahramadan f687185
stylistic space before return
hannahramadan 9954488
Merge pull request #3454 from newrelic/otel_bridge_bugfix_unfinished_…
hannahramadan 9694eaa
Add hybrid agent changelog entry
kaylareopelle dd5eb70
Small config description edits
kaylareopelle d9a4516
Remove extra newline
kaylareopelle 1f6008a
Remove line about instrumentation
kaylareopelle bbbf58a
Merge pull request #3458 from newrelic/hybrid-agent-changelog
kaylareopelle 78da9ea
bump version
newrelic-ruby-agent-bot f6b2570
Updates from PR#3458
kaylareopelle e6a6f4a
Merge pull request #3457 from newrelic/prerelease_updates_10.2.0-pre
kaylareopelle 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
107 changes: 107 additions & 0 deletions
107
.fleetControl/agentControl/agent-schema-for-agent-control.yml
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,107 @@ | ||
| # original source: https://github.com/newrelic/newrelic-agent-control/blob/main/agent-control/agent-type-registry/newrelic/com.newrelic.apm_ruby-0.1.0.yaml | ||
| namespace: newrelic | ||
| name: com.newrelic.apm_ruby | ||
| version: 0.1.0 | ||
| variables: | ||
| k8s: | ||
| podLabelSelector: | ||
| description: "Pod label selector" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| containerSelector: | ||
| description: "Container selector" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| namespaceLabelSelector: | ||
| description: "Namespace label selector" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| # All 'agent' side-car related variables are flattened. | ||
| version: | ||
| description: "Ruby Agent init container version" | ||
| type: string | ||
| default: "latest" | ||
| required: false | ||
| env: | ||
| description: "environment variables to pass to Ruby agent" | ||
| type: yaml | ||
| default: [ ] | ||
| required: false | ||
| imagePullPolicy: | ||
| description: "image pull policy for the Ruby agent init container" | ||
| type: string | ||
| default: "Always" | ||
| required: false | ||
| resourceRequirements: | ||
| description: "resource requirements for the Ruby agent init container" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| securityContext: | ||
| description: "security context for the Ruby agent init container" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| # All health sidecar related variables are flattened and prefixed with "health_" | ||
| health_env: | ||
| description: "environment variables to pass to health sidecar" | ||
| type: yaml | ||
| default: [ ] | ||
| required: false | ||
| health_version: | ||
| description: "health sidecar image version" | ||
| type: string | ||
| default: "latest" | ||
| required: false | ||
| health_imagePullPolicy: | ||
| description: "image pull policy for the health sidecar" | ||
| type: string | ||
| default: "Always" | ||
| required: false | ||
| health_resourceRequirements: | ||
| description: "resource requirements for the health sidecar" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| health_securityContext: | ||
| description: "security context for the health sidecar" | ||
| type: yaml | ||
| default: { } | ||
| required: false | ||
| deployment: | ||
| k8s: | ||
| health: | ||
| interval: 30s | ||
| initial_delay: 30s | ||
| objects: | ||
| instrumentation: | ||
| apiVersion: newrelic.com/v1beta3 | ||
| kind: Instrumentation | ||
| metadata: | ||
| name: ${nr-sub:agent_id} | ||
| # APM CRs should be installed in "nr-ac:namespace" | ||
| # Due to a limitation in the k8s-agents-operator, Instrumentation CRs must be installed in the same namespace as the operator. | ||
| # Hence, the namespace is set to "nr-ac:namespace_agents". | ||
| # Reference: https://github.com/newrelic/k8s-agents-operator/blob/92c19208864f051f03f457ee04b772fca5042162/api/v1beta1/instrumentation_webhook.go#L110C27-L110C72 | ||
| namespace: ${nr-ac:namespace_agents} | ||
| spec: | ||
| agent: | ||
| language: ruby | ||
| image: newrelic/newrelic-ruby-init:${nr-var:version} | ||
| env: ${nr-var:env} | ||
| imagePullPolicy: ${nr-var:imagePullPolicy} | ||
| resources: ${nr-var:resourceRequirements} | ||
| securityContext: ${nr-var:securityContext} | ||
| healthAgent: | ||
| image: newrelic/k8s-apm-agent-health-sidecar:${nr-var:health_version} | ||
| env: ${nr-var:health_env} | ||
| imagePullPolicy: ${nr-var:health_imagePullPolicy} | ||
| resources: ${nr-var:health_resourceRequirements} | ||
| securityContext: ${nr-var:health_securityContext} | ||
| podLabelSelector: ${nr-var:podLabelSelector} | ||
| namespaceLabelSelector: ${nr-var:namespaceLabelSelector} | ||
| containerSelector: ${nr-var:containerSelector} | ||
|
|
||
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,5 @@ | ||
| agentControlDefinitions: | ||
| - platform: KUBERNETESCLUSTER | ||
| supportFromAgent: 1.0.0 | ||
| supportFromAgentControl: 1.0.0 | ||
| content: ./agentControl/agent-schema-for-agent-control.yml |
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,6 @@ | ||
| configurationDefinitions: | ||
| - platform: KUBERNETESCLUSTER | ||
| description: Ruby agent configuration | ||
| type: agent-config | ||
| version: 1.0.0 | ||
| # will add schema information here later |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| name: Agent Metadata | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| # Allows manual triggering with parameters | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: 'Version tag (e.g., v10.0.0)' | ||
| required: true | ||
| type: string | ||
| agent-type: | ||
| description: 'Agent type' | ||
| required: false | ||
| default: 'NRRubyAgent' | ||
| type: string | ||
| use-cache: | ||
| description: 'Use cache' | ||
| required: false | ||
| default: true | ||
| type: boolean | ||
| # commented items below pertain to future work | ||
| # oci-registry: | ||
| # description: 'OCI registry URL for binary uploads (e.g., ghcr.io/newrelic/agents). Leave empty to skip binary upload.' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # oci-username: | ||
| # description: 'OCI registry username (required if oci-registry is set)' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # oci-password: | ||
| # description: 'OCI registry password or token (required if oci-registry is set)' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # binaries: | ||
| # description: 'JSON array with artifact definitions' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
|
|
||
| # Allows calling from another workflow | ||
| workflow_call: | ||
| inputs: | ||
| version: | ||
| description: 'Version tag to test' | ||
| required: true | ||
| type: string | ||
| agent-type: | ||
| description: 'Agent type' | ||
| required: false | ||
| default: 'NRRubyAgent' | ||
| type: string | ||
| use-cache: | ||
| description: 'Use cache' | ||
| required: false | ||
| default: true | ||
| type: boolean | ||
| # commented items below pertain to future work | ||
| # oci-registry: | ||
| # description: 'OCI registry URL for binary uploads (e.g., ghcr.io/newrelic/agents). Leave empty to skip binary upload.' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # oci-username: | ||
| # description: 'OCI registry username (required if oci-registry is set)' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # oci-password: | ||
| # description: 'OCI registry password or token (required if oci-registry is set)' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| # binaries: | ||
| # description: 'JSON array with artifact definitions' | ||
| # required: false | ||
| # default: '' | ||
| # type: string | ||
| secrets: | ||
| FC_SYS_ID_CLIENT_ID: | ||
| required: true | ||
| FC_SYS_ID_PR_KEY: | ||
| required: true | ||
| APM_CONTROL_NR_LICENSE_KEY_STAGING: | ||
| required: true | ||
|
|
||
| jobs: | ||
| test-agent-metadata-action: | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| steps: | ||
| - name: Run action | ||
| uses: newrelic/agent-metadata-action@v1.0.2 | ||
| with: | ||
| newrelic-client-id: ${{ secrets.FC_SYS_ID_CLIENT_ID }} | ||
| newrelic-private-key: ${{ secrets.FC_SYS_ID_PR_KEY }} | ||
| apm-control-nr-license-key: ${{ secrets.APM_CONTROL_NR_LICENSE_KEY_STAGING }} # action app is instrumented and supported by APM Control team | ||
| agent-type: ${{ inputs.agent-type }} | ||
| version: ${{ inputs.version }} | ||
| cache: ${{ inputs.use-cache }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,4 +48,5 @@ typhoeus | |
| unicorn | ||
| view_component | ||
| yajl-ruby | ||
| logging | ||
| parallel | ||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.