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

feat: add Dynatrace datasource #2989

Merged
merged 8 commits into from
Jul 31, 2023
Merged

Conversation

agardnerIT
Copy link
Contributor

@agardnerIT agardnerIT commented Jul 27, 2023

This PR adds Dynatrace as a DataStore to Tracetest.

Changes

  • Adds Dynatrace as a datasource

Checklist

  • [] tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link
Collaborator

@kdhamric kdhamric left a comment

Choose a reason for hiding this comment

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

Marked a couple spots that may need correction

Copy link
Contributor

@danielbdias danielbdias left a comment

Choose a reason for hiding this comment

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

hi @agardnerIT ! thanks for your contribution! 😄
I've added some comments that we can improve on this PR. Does them make sense?


## Prerequisites

You will need [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) installed on your machine to run this sample app! Additionally, you will need a Datadog account and an API. Sign up to Datadog on their [homepage](https://www.datadoghq.com/) by clicking on `Get Started Free`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
You will need [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) installed on your machine to run this sample app! Additionally, you will need a Datadog account and an API. Sign up to Datadog on their [homepage](https://www.datadoghq.com/) by clicking on `Get Started Free`.
You will need [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) installed on your machine to run this sample app! Additionally, you will need a Datadog account and an API Key. Sign up for Dynatrace on their [homepage](https://www.dynatrace.com/) by clicking on `Free trial`.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@danielbdias is going to review this today. If we can get it knocked out, we may be able to slide it into the RC on Monday and then release on Tuesday!

agardnerIT and others added 6 commits July 28, 2023 08:03
Signed-off-by: Adam Gardner <[email protected]>
Signed-off-by: Adam Gardner <[email protected]>
Signed-off-by: Adam Gardner <[email protected]>
Signed-off-by: Adam Gardner <[email protected]>
Signed-off-by: Adam Gardner <[email protected]>
@agardnerIT
Copy link
Contributor Author

Really not sure how I missed all of that! Hopefully those new commits resolve all the issues.

Copy link
Contributor

@danielbdias danielbdias left a comment

Choose a reason for hiding this comment

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

Added some comments that can help to fix the CI for the server and frontend. By making these changes, we are ready to go with this PR.

server/tracedb/tracedb_test.go Outdated Show resolved Hide resolved
web/src/components/DataStoreIcon/Icons/Dynatrace.tsx Outdated Show resolved Hide resolved
@@ -194,7 +194,8 @@ components:
awsxray,
honeycomb,
azureappinsights,
signoz
signoz,
dynatrace
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you run make generate-web to make this change reflect on the Web UI and commit the change on web/src/types/Generated.types.ts?
By doing that the UI CI tasks will run normally and the frontend will build.

Signed-off-by: Adam Gardner <[email protected]>
@agardnerIT
Copy link
Contributor Author

I've fixed the SVG and code comments. Having some trouble running make generate-web.

  1. No windows support
  2. I run in a codespace and download goreleaser pro 1.18.2 then run make generate-web from root and get this:
@agardnerIT ➜ /workspaces/tracetest (add-dt) $ make generate-web
make: Nothing to be done for 'generate-web'.
  1. make goreleaser-version:
make: Nothing to be done for 'goreleaser-version'.
  1. `$ make build-web
    cd web; npm run build

[email protected] build
npm run less && craco build

[email protected] less
lessc --js src/antd-theme/antd-customized.less src/antd-theme/antd-customized.css

Creating an optimized production build...
TypeError: Cannot set property mark of # which has only a getter
TypeError: Cannot set property mark of # which has only a getter
at Object.connectTypeScriptPerformance (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/profile/TypeScriptPerformance.js:12:36)
at createTypeScriptReporter (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporter.js:40:49)
at Object. (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:21:30)
at Generator.next ()
at /workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:8:71
at new Promise ()
at __awaiter (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:4:12)
at /workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:19:88
at Object. (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcService.js:23:38)
at Generator.next ()
TypeError: Cannot set property mark of # which has only a getter
TypeError: Cannot set property mark of # which has only a getter
at Object.connectTypeScriptPerformance (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/profile/TypeScriptPerformance.js:12:36)
at createTypeScriptReporter (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporter.js:40:49)
at Object. (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:21:30)
at Generator.next ()
at /workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:8:71
at new Promise ()
at __awaiter (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:4:12)
at /workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:19:88
at Object. (/workspaces/tracetest/web/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcService.js:23:38)
at Generator.next ()


Side note: It would be great to have a preconfigured codespace w/ batteries included to help dev.

@danielbdias
Copy link
Contributor

Side note: It would be great to have a preconfigured codespace w/ batteries included to help dev.

Thanks for this feedback @agardnerIT ! I will double-check with the team about this.

I will take a look on generate-web and fix that for this PR.

@danielbdias
Copy link
Contributor

By adding the generated content, this PR works. I'll merge it and add the generated FE content in another PR.

@mathnogueira mathnogueira merged commit 1144c83 into kubeshop:main Jul 31, 2023
@kdhamric
Copy link
Collaborator

Very excited to have this in and released!!!

@agardnerIT agardnerIT deleted the add-dt branch August 1, 2023 02:15
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