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

Provide DataDog veneer for generated ApiClient #2687

Open
jdimeo opened this issue Jan 30, 2025 · 0 comments
Open

Provide DataDog veneer for generated ApiClient #2687

jdimeo opened this issue Jan 30, 2025 · 0 comments
Labels
kind/feature-request Feature request related issue

Comments

@jdimeo
Copy link

jdimeo commented Jan 30, 2025

Note:
If you have a feature request, you should contact support so the request can be properly tracked.

Is your feature request related to a problem? Please describe.
Right now the "raw" generated ApiClient is difficult to configure and use. There can be many ApiClient classes on the classpath (I have dozens) from various APIs.

Describe the solution you'd like

public class DataDogClient extends ApiClient {
    ...
}

and then we are instructed to use this as the entrypoint.

This additionally allows for avoiding code smells, instead of being forced to set DD_SITE env var or knowing the internals of the server variable naming, this veneer client can provide a setter like setSite("datadoghq.com") that configures the server variables for us, hiding those implementation details.

Describe alternatives you've considered
Totally optional- can keep rolling with what you have now.

Additional context
This helps new developers begin using this great client more quickly and more safely.

@jdimeo jdimeo added the kind/feature-request Feature request related issue label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request Feature request related issue
Projects
None yet
Development

No branches or pull requests

1 participant