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

[apm] trace search #485

Merged
merged 12 commits into from
Jan 22, 2019
Merged

[apm] trace search #485

merged 12 commits into from
Jan 22, 2019

Conversation

lowkeyshift
Copy link
Contributor

Corrected PR origin now submitting again.

Missing Spec test code, would like some help with that if possible. I have added and updated the manifest, param and init.pp files with the ability to automate the trace search & analytics configuration in the datadog.yaml file.

@irabinovitch irabinovitch requested a review from truthbk January 7, 2019 02:36
Copy link

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

It looks good to me, but given that I have no experience with Ruby or Puppet, it'd be nice if we could try it out and make sure it's working before merging. Also, CI is failing.

Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Could we please add some spec tests for the feature? It will give us a good sense of how the code is performing and keep us honest in the future.

@truthbk truthbk changed the title Edwin/apm trace search [apm] trace search Jan 18, 2019
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

There's no A6 configuration management added in the PR, and we're still missing spec tests.

@@ -347,7 +347,14 @@ process_agent_enabled: <%= @process_enabled %>
# Enable the trace agent.
apm_enabled: <%= @apm_enabled %>

# Enable and the trace search & analytics by adding a list of entered APM events.
<% if ! @apm_analyzed_spans.nil? -%>
Copy link
Member

Choose a reason for hiding this comment

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

I think that given the way this has been defined to use types we can probably just do:

<% if @apm_analyzed_spans -%>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes very good point.

@truthbk truthbk force-pushed the edwin/apm-trace-search branch from 7759a50 to b03b8a3 Compare January 21, 2019 23:26
@truthbk
Copy link
Member

truthbk commented Jan 22, 2019

Issues addressed:

  • Modified init parameter to be an Optional Hash where the key is the span name in the form service|request' and the key is a Float[0, 1]` as expected by the service.
  • Added support for both A5 and A6.
  • Added spec tests

Merging.

@truthbk truthbk merged commit 6b7f5c8 into master Jan 22, 2019
@truthbk truthbk deleted the edwin/apm-trace-search branch January 22, 2019 15:05
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
* Added the ability to apm events for trace search

* [apm] adding apm_analyzed_spans for A6

* [apm] adding support for APM analyze spans in A5 + changing argument to hash

* [readme] docs + broken table + init description
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.

4 participants