Skip to content

Sentry#79

Merged
mdellabitta merged 7 commits intomainfrom
sentry
Dec 20, 2024
Merged

Sentry#79
mdellabitta merged 7 commits intomainfrom
sentry

Conversation

@mdellabitta
Copy link
Contributor

@mdellabitta mdellabitta commented Dec 20, 2024

Important

Integrate Sentry with OpenTelemetry, update Dockerfile, dependencies, CI workflow, and modify logging setup.

  • Sentry Integration:
    • Add sentry.properties and sentry-opentelemetry-agent.jar.
    • Update Dockerfile to copy these files and modify CMD to include Sentry agent.
  • Dependencies:
    • Add OpenTelemetry dependencies in build.sbt under openTelemetrySpecific.
  • CI Workflow:
    • Update .github/workflows/scala.yml to use ubuntu-22.04, actions/checkout@v4, and actions/setup-java@v4.
    • Add Codacy coverage reporting.
  • Logging:
    • Change logger initialization in Routes.scala to use getClass.
  • Misc:
    • Rename ActorSystem name in RunApp.scala from HelloAkkaHttpServer to DPLA API Server.

This description was created by Ellipsis for 501e18b. It will automatically update as commits are pushed.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 4f0231a in 30 seconds

More details
  • Looked at 91 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 drafted comments based on config settings.
1. Dockerfile:14
  • Draft comment:
    Add a newline at the end of the file for POSIX compliance.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The Dockerfile is missing a newline at the end of the file, which is a best practice for POSIX compliance and can prevent potential issues with some tools.
2. src/main/scala/dpla/api/RunApp.scala:99
  • Draft comment:
    The change of the actor system name to 'DPLA API Server' is appropriate and aligns with the project naming.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The name of the actor system in RunApp.scala was changed from 'HelloAkkaHttpServer' to 'DPLA API Server'. This change is consistent with the project naming and does not introduce any issues.
3. src/main/scala/dpla/api/Routes.scala:43
  • Draft comment:
    Using getClass for logger initialization is a good practice and ensures the logger is correctly named after the class.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The logger initialization in Routes.scala was changed to use getClass instead of a hardcoded string. This is a good practice as it ensures the logger is correctly named after the class.
4. build.sbt:48
  • Draft comment:
    The addition of OpenTelemetry dependencies is consistent with the intent to integrate tracing capabilities.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    In the build.sbt file, the OpenTelemetry dependencies are added to the project. This is consistent with the intent to integrate OpenTelemetry for tracing.
5. sentry.properties:2
  • Draft comment:
    Add a newline at the end of the file for POSIX compliance.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The sentry.properties file is missing a newline at the end of the file, which is a best practice for POSIX compliance and can prevent potential issues with some tools.

Workflow ID: wflow_FJCkIybcGk9Yl9U8


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on d936213 in 10 seconds

More details
  • Looked at 28 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/scala.yml:23
  • Draft comment:
    Ensure that the sbt plugin for coverage is correctly configured in the project to avoid build failures.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of sbt clean coverage test coverageReport is a good practice for ensuring clean builds and generating coverage reports. However, it's important to ensure that the sbt plugin for coverage is correctly configured in the project.

Workflow ID: wflow_PSuJBJ2TyFm2cnCs


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on bda7455 in 20 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/scala.yml:20
  • Draft comment:
    The change from java-version: 1.8 to java-version: 8 is correct and aligns with the standard way to specify Java versions in GitHub Actions.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from java-version: 1.8 to java-version: 8 is correct and aligns with the standard way to specify Java versions in GitHub Actions.

Workflow ID: wflow_6BRRXi9JsZ09te5U


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 159b26c in 12 seconds

More details
  • Looked at 11 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. project/plugins.sbt:3
  • Draft comment:
    Add a newline at the end of the file for POSIX compliance and to avoid potential issues with some tools.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The file is missing a newline at the end, which is a best practice for POSIX compliance and avoiding potential issues with some tools.

Workflow ID: wflow_aqfd6RUXgqo2pS1b


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 501e18b in 16 seconds

More details
  • Looked at 11 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. project/plugins.sbt:3
  • Draft comment:
    Consider adding a newline at the end of the file for POSIX compliance and to prevent potential issues with some tools.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The newline at the end of the file is missing, which is a best practice for POSIX compliance and can prevent potential issues with some tools.

Workflow ID: wflow_hYZMKc8OkXe8b8sR


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for ce753a11 50.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ce753a1) Report Missing Report Missing Report Missing
Head commit (501e18b) 2369 1962 82.82%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#79) 2 1 50.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@mdellabitta mdellabitta merged commit f7f734b into main Dec 20, 2024
4 checks passed
@mdellabitta mdellabitta deleted the sentry branch December 20, 2024 18:54
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.

1 participant