Skip to content

Remove aws-xray-sdk #171

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 14 commits into from
Sep 13, 2021
Merged

Remove aws-xray-sdk #171

merged 14 commits into from
Sep 13, 2021

Conversation

maxday
Copy link
Contributor

@maxday maxday commented Sep 2, 2021

What does this PR do?

  • Remove aws-xray-sdk from the layer
  • Refactors how we create the dummy metadata datadog subsegment

Motivation

Cold start performance improvements

Testing Guidelines

Unit tests + integration tests + manual test

Screen Shot 2021-09-03 at 1 53 42 PM

Screen Shot 2021-09-03 at 1 53 36 PM

Screen Shot 2021-09-03 at 1 53 31 PM

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@maxday maxday requested a review from a team as a code owner September 2, 2021 15:03
@maxday maxday force-pushed the maxday/remove-xray-sdk branch from 8da73fe to b3b8a35 Compare September 3, 2021 15:54
@maxday maxday changed the title [WIP] Remove xray-sdk Remove aws-xray-sdk Sep 3, 2021
flake8,gitlab.com/pycqa/flake8,MIT,"Copyright (C) 2011-2013 Tarek Ziade <[email protected]>. Copyright (C) 2012-2016 Ian Cordasco <[email protected]>."
nose2,github.com/nose-devs/nose2,BSD-2-Clause,"Copyright (c) 2012, Jason Pellerin. All rights reserved."
requests,github.com/kennethreitz/requests,Apache-2.0,"Copyright 2018 Kenneth Reitz"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

requests was previously removed

Copy link
Contributor

@DarcyRaynerDD DarcyRaynerDD left a comment

Choose a reason for hiding this comment

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

LGTM, left one thing we need to check

"trace_id": context["trace_id"],
"parent_id": context["parent_id"],
"name": XraySubsegment.NAME,
"start_time": time.time(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to verify that time.time() returns in the correct unit: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html . I believe there might be a bug in the node version where this timestamp is off by an order of magnitude.

Copy link
Contributor Author

@maxday maxday Sep 10, 2021

Choose a reason for hiding this comment

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

@maxday maxday merged commit 98e7757 into main Sep 13, 2021
@maxday maxday deleted the maxday/remove-xray-sdk branch September 13, 2021 17:24
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.

2 participants