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

(dyngo): move out of /internal/ #2675

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Apr 29, 2024

What does this PR do?

This PR moves Dyngo out of /internal/appsec so it can be safely depended upon by external packages. It also includes the necessary accompanying refactors.

Motivation

This is to allow orchestrion to use this API in code it injects without creating opaque cross-package dependencies (that would be too brittle).

Partially contributes to DataDog/orchestrion#86

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@github-actions github-actions bot added the apm:ecosystem contrib/* related feature requests or bugs label Apr 29, 2024
@@ -72,21 +94,27 @@ func newWafEventListener(wafHandle *waf.Handle, cfg *config.Config, limiter limi

// NewWAFEventListener returns the WAF event listener to register in order
// to enable it.
func (l *wafEventListener) onEvent(request *types.RequestOperation, _ types.RequestOperationArgs) {
func (l *wafEventListener) onEvent(request *graphqlevent.RequestOperation, args graphqlevent.RequestOperationArgs) {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)

@Julio-Guerra
Copy link
Contributor

I am actively wondering whether we should move dyngo straight into orchestrion [or not [yet]].

Copy link

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale Stuck for more than 1 month label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs stale Stuck for more than 1 month
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants