Skip to content

adding meta support #30

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 1 commit into from
Jul 3, 2017
Merged

adding meta support #30

merged 1 commit into from
Jul 3, 2017

Conversation

gpolaert
Copy link
Contributor

@gpolaert gpolaert commented Jul 3, 2017

Sorry, old file format.

Adding

httpCon.setRequestProperty("Content-Type", "application/json");
httpCon.setRequestProperty("Datadog-Meta-Lang", "java");
httpCon.setRequestProperty("Datadog-Meta-Lang-Version", DDTracer.JAVA_VERSION);
httpCon.setRequestProperty("Datadog-Meta-Tracer-Version", DDTracer.CURRENT_VERSION);```

@gpolaert gpolaert requested review from tylerbenson and palazzem July 3, 2017 15:27
Copy link
Contributor

@palazzem palazzem left a comment

Choose a reason for hiding this comment

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

Thank you!

httpCon.setRequestProperty("Content-Type", "application/json");
httpCon.setRequestProperty("Datadog-Meta-Lang", "java");
httpCon.setRequestProperty("Datadog-Meta-Lang-Version", DDTracer.JAVA_VERSION);
httpCon.setRequestProperty("Datadog-Meta-Tracer-Version", DDTracer.CURRENT_VERSION);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍


/**
* The API pointing to a DD agent
*/
public class DDApi {

private static final Logger logger = LoggerFactory.getLogger(DDApi.class.getName());
private static final Logger logger = LoggerFactory.getLogger(DDApi.class.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like formatting changed a lot. Was this intentional? Perhaps we should have a discussion on applying and enforcing standardized formatting?

Copy link
Contributor

Choose a reason for hiding this comment

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

mhhhhh thought it was intentional / agreed... if we're changing the code-style, let's agree on that plus update all the rest. If it's a mistake, just undo the code style refactoring.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would rather we do all the reformatting in one PR, otherwise it will pollute PR's going forward. I'm ok getting this merged as is though. Merging now.

Copy link
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

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

With the test improvements I'm adding to DDApi, it should be easy to verify this. I'll add those tests in my branch.

@tylerbenson tylerbenson merged commit b16ca52 into master Jul 3, 2017
@tylerbenson tylerbenson deleted the gpolaert/meta branch July 3, 2017 17:32
@palazzem
Copy link
Contributor

palazzem commented Jul 3, 2017

Yes that's fine, we can enforce the code-style with tools and guidelines as you said before. 👍 to me.

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