8000 feat: add tracing by dmehala · Pull Request #1 · DataDog/httpd-datadog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add tracing #1

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 12 commits into from
Jun 14, 2024
Merged

feat: add tracing #1

merged 12 commits into from
Jun 14, 2024

Conversation

dmehala
Copy link
Collaborator
@dmehala dmehala commented May 24, 2024

Description

This PR add tracing capabilities to httpd.

Note to Reviewers

The remaining work are not related to the tracing implementation but everything around like CI/CD. I am opening this PR to give you enough time to review.

Left to do:

  • Use CI Visibility.
  • Add release workflow.
  • Fix the compilation issue in CI.
  • Self review.
  • Build with musl?
  • Add again datadog-handler for debugging purposes.
  • Update to the latest dd-trace-cpp version.
  • Code coverage.

git clone --branch 1.6.3 --depth 1 https://github.com/apache/apr-util.git ${OUTPUT_DIR}/srclib/apr-util
git clone --branch 1.7.4 --depth 1 https://github.com/apache/apr.git ${OUTPUT_DIR}/srclib/apr

cd httpd
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
cd httpd
cd $OUTPUT_DIR


namespace datadog::tracing {

class HttpdLogger final : public datadog::tracing::Logger {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe silly, but I'd be worried someone adds a log_info method or something down the line locking in dangerous places. What do you think about changing it to something like HttpdLockingLogger?

Co-authored-by: pablomartinezbernardo <134320516+pablomartinezbernardo@users.noreply.github.com>
@dmehala dmehala merged commit 68188e3 into main Jun 14, 2024
5 checks passed
@dmehala dmehala deleted the dmehala/add-trace branch June 14, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment 5D97
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0