GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Documentation by gpolaert · Pull Request #29 · DataDog/dd-trace-java

Conversation

@gpolaert

@gpolaert gpolaert commented Jul 3, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gpolaert
gpolaert requested review from LotharSee, awang and tylerbenson July 3, 2017 13:01
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Are we still automatically configuring the tracer when running the Agent?
If yes, we should certainly state it (and even explain it as the default/simple what it should be done/move this manual configuration of the Tracer is an advanced section).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tylerbenson reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

As part of the example, let's should how, from inside methodSDK, you can access the span generated from the annotation, set its resource, set tags, etc...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

s/so have to provide the agent/you must run the Java Agent

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This explanation of the Agent shouldn't live here, it should go with the first section "Use the autotracing agent for well-known framework". Here, you just link to it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It is good to have here the bare minimum to run the javaagent without having the user jumping to the other page (a bit like what you did at the end of the file).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 3, 2017
View reviewed changes
Comment thread dd-trace/README.md Outdated

@LotharSee LotharSee Jul 3, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I suggest a different approach.

  • To add instrumentation to your own code, you can use the OpenTracing API.
  • Then add a complete example: setting service, resource, tags, ...
  • Document here the API (so that they don't have to jump to the OT doc). At the same time, we can properly document our special fields (service, resource).
  • Link to the OT documentation at the end for further documentation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tylerbenson reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'd suggest also including the gradle/maven string to add to your project to add as a compile time dependency.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gpolaert gpolaert Jul 4, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Should we add a new page for documented the API.

If we add the API, could it be verbose?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tylerbenson
tylerbenson suggested changes Jul 3, 2017
View reviewed changes

@tylerbenson tylerbenson left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think we need to replace mentions of "autotracing". After discussing with @LotharSee, I feel it's probably best for now to not rename that project, but leave it as is. Are you ok leaving that project name alone?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

When mentioning Opentracing the first time, I suggest either adding a link to either https://github.com/opentracing/opentracing-java or http://opentracing.io/.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

"each operations, each traces" -> "each operation and each trace"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

"example of how Opentracing works"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

"Datadog uses instrumentation contributed by the community to instrument many frameworks..."

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'd suggest also including the gradle/maven string to add to your project to add as a compile time dependency.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/README.md Outdated

@tylerbenson tylerbenson Jul 3, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

"only useful" -> "only needed"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gpolaert @tylerbenson
Documentation
58c9cba
@tylerbenson
tylerbenson force-pushed the gpolaert/documentation branch from b488134 to 58c9cba Compare July 3, 2017 17:46
@tylerbenson

tylerbenson commented Jul 3, 2017

Copy link
Copy Markdown
Contributor

As with the other branch, I just force pushed to this branch to make sure the new maven settings are populated everywhere. Please let me know if you have troubles with this force push.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gpolaert added 5 commits July 4, 2017 11:18
@gpolaert
WIP - according the PR comments
478e032
@gpolaert
WIP - adding minimal stuff for DD Java agent
6655369
@gpolaert
WIP - manual initialisation of the tracer
09b4b25
@gpolaert
WIP - refactor config file
5e9cb89
@gpolaert
WIP - adding gradle string
a0b7517
@gpolaert

gpolaert commented Jul 4, 2017

Copy link
Copy Markdown
Contributor Author

@LotharSee @tylerbenson updated!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md


### How to instrument well-known framework?
## How to instrument your application?

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Before this advanced section, we should provide a "Quick start guide" where we put the strict minimum to have it running (just the java agent) + say to have the Agent running. With the config defaults, that should just work.

Similar examples for other languages: https://app.datadoghq.com/apm/install

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md
Check the dedicated project and agent: [dd-java-agent](../dd-java-agent)
In order to start to instrument your application, you need to:

1. [Configure the Datadog Tracer](#config)

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

That should be 2. instead of 1.: first you instrument your app, then you may need to tweak the config (but most of the time you won't right away).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md
In order to start to instrument your application, you need to:

1. [Configure the Datadog Tracer](#config)
2. Choose one of the 3 ways to instrument an application:

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Imho, we should not oppose these 3 ways (not "choose one"), but instead offer them all together. ie. we should word it as successive steps:

  • Run the auto tracing agent
  • Extend it with your own instrumentation (then in this section we document the Tracer/Span/annotation API).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md
span.finish();
}

}

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We could probably add a set of more / advanced examples in a docs directory, then link to it from there. (there, we would be able to use the entire OpenTracing API with some real examples, to which people can refer).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md
}
```

The method above is now instrumented. As you can see, the tracer is retrieved from a global registry, called `GlobalTracer`.

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is more advanced, more especially if people run the Trace Agent it is not needed and might confuse them.
We could put that with other advanced examples.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LotharSee
LotharSee reviewed Jul 5, 2017
View reviewed changes
Comment thread dd-trace/README.md
see traces directly to your Datadog account.
The factory looks for a `dd-trace.yaml` file in the classpath.

Finally, do not forget to add the corresponding dependencies to your project.

@LotharSee LotharSee Jul 5, 2017

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Maybe we should start with that?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tylerbenson
tylerbenson approved these changes Jul 5, 2017
View reviewed changes
@tylerbenson

tylerbenson commented Jul 5, 2017

Copy link
Copy Markdown
Contributor

I agree with @LotharSee's suggestions. I'll approve, but I suggest you adopt his suggestions.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gpolaert
Improving Spring Boot documentation
4b9d5f4
@gpolaert

gpolaert commented Jul 7, 2017

Copy link
Copy Markdown
Contributor Author

Sure, I'm still continuing on that PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gpolaert
Opentracing API documentation
b4739fe
This was referenced May 7, 2025
Add process tags to dynamic instrumentation intake payload #8779
Merged
Collect process tags for profiling upload requests #8780
Merged
implement LLM Obs SDK spans APIs #8390
Merged
Enable the quarkus-native smoke test #8783
Merged
Inferred Proxy Improvements #8784
Closed
Update gradle plugin to support Java 24 #8785
Merged
Extended appsec request body collection #8748
Merged
Remove muzzle from CircleCI #8703
Merged
Always build ci workspace without trailing separator #8788
Merged
Enforce size limit on application_monitoring.yaml files #8789
Merged
Reduce span construction overhead by switching to optimized TagMap #8589
Merged
The Stable Config migration from snakeyaml to the snakeyaml engine to support GraalVM Native #8790
Merged
Add appsec.waf.input_truncated metric #8791
Merged
Read hsperfdata for Java PIDs if jvmstat is unavailable #8792
Merged
Support re-registration of different ContextManagers/Binders during testing #8793
Merged
Update Gradle dependencies #8794
Closed
Move InferredProxyContext to internal-api… #8795
Closed
Rename test methods to remove duplicate method names #8796
Merged
Notify listeners when the scope top changes after switching scope stacks #8797
Merged
Cleanup Zio fiber instrumentation to avoid repeated activation of continuation #8798
Merged
Avoid potential race conditions on collecting process tags #8799
Merged
chore(ci): bump github/codeql-action from 3.28.16 to 3.28.17 in the gh-actions-packages group #8800
Closed
Improve inferred gateway span design #8801
Closed
Align retry logic for all test framework instrumentations #8803
Merged
Adapt standalone ASM to support API Security #8804
Merged
Implement Context.swap() on top of scope stacks #8805
Merged
Simplify context propagation #8719
Merged
chore(ci): bump the gh-actions-packages group across 1 directory with 2 updates #8806
Closed
Migrate publishing to Maven Central Portal #8807
Merged
Fix Check Pull Request CI Status job #8809
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@LotharSee LotharSee LotharSee left review comments
@awang awang Awaiting requested review from awang
+1 more reviewer
@tylerbenson tylerbenson tylerbenson approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@gpolaert @tylerbenson @LotharSee
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.