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

add missing overloads to TraceID's operator== and operator!= #23

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

dgoffredo
Copy link
Contributor

trace_id == some_int was defined, but not some_int == trace_id.

@dgoffredo
Copy link
Contributor Author

clint

@dgoffredo dgoffredo merged commit 66be1fb into main Mar 17, 2023
@dgoffredo dgoffredo deleted the david.goffredo/equality-is-symmetric branch March 17, 2023 17:47
cataphract pushed a commit to cataphract/dd-trace-cpp that referenced this pull request Mar 28, 2024
This revision removes the dependence on [dd-opentracing-cpp][1] and on [opentracing-cpp][2]. Instead, the newer [dd-trace-cpp][3] is used for tracing.

In addition to changing the implementation detail that is the underlying tracing library, I also changed how the module is configured. Previously, users could specify tracer configuration via a `datadog` block directive containing JSON, e.g.
```nginx
http {
    datadog {
        "agent_url": "http://dd-agent:8126",
        "sample_rate": 0.1,
        "propagation_style_extract": ["B3", "Datadog"]
    }
    ...
}
```

Now, the most consequential configuration options (agent URL, propagation styles, and sample rate) have their own configuration directives, and the `datadog { ... }` block directive has been removed. The example above now looks like:
```nginx
http {
    datadog_agent_url http://dd-agent:8126;
    datadog_sample_rate 0.1;
    datadog_propagation_styles B3 Datadog;
    ...
}
```

See the changes to `doc/API.md` for a description of the new configuration directives. The `datadog_sample_rate` directive is particularly sophisticated and is designed to obviate the need for specifying sampling rules.

Environment variables are still supported.

Another change is that `datadog_*` directives are no longer allowed in `if` contexts. The directive that I guessed was most likely to be used in an `if` context, `datadog_tag`, does not work reliably in `if` contexts. I tested it and decided it was not worth making work. This we might need to revisit per user feedback.

[1]: https://github.com/DataDog/dd-opentracing-cpp
[2]: https://github.com/opentracing/opentracing-cpp
[3]: https://github.com/DataDog/dd-trace-cpp
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