Skip to content

tracing: plumb HttpTracer into AsyncClientImpl#888

Closed
goaway wants to merge 1 commit intomasterfrom
plumb-tracer
Closed

tracing: plumb HttpTracer into AsyncClientImpl#888
goaway wants to merge 1 commit intomasterfrom
plumb-tracer

Conversation

@goaway
Copy link
Copy Markdown
Contributor

@goaway goaway commented May 3, 2017

No description provided.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

at a high level looks good, some small comments.

#include "envoy/upstream/cluster_manager.h"

#include "common/common/logger.h"
#include "common/tracing/http_tracer_impl.h"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't need impl header here, just interface.

public:
virtual ~HttpTracer() {}

virtual void installDriver(DriverPtr&& driver) PURE;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see why you need this in the config code, but I would prefer that we not expose this function around the code base. If you need it to be part of the interface, can we make another interface the derives from this interface that allows driver installation?

HttpTracerImpl::HttpTracerImpl(DriverPtr&& driver, const LocalInfo::LocalInfo& local_info)
: driver_(std::move(driver)), local_info_(local_info) {}

void HttpTracerImpl::installDriver(DriverPtr&& driver) { driver_ = std::move(driver); }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No one should start a span between the time we make a tracer, and install the driver. I would remove driver from the constructor, and allow it to be null. Then in this function I would ASSERT(driver_ == nullptr);

@goaway
Copy link
Copy Markdown
Contributor Author

goaway commented May 4, 2017

Implemented above changes, but on hold pending related PR that supports an alternate approach.

@mattklein123
Copy link
Copy Markdown
Member

@goaway should we just close this?

@goaway
Copy link
Copy Markdown
Contributor Author

goaway commented May 4, 2017

Sure, can always re-open if for some reason we decide we want it.

@goaway goaway closed this May 4, 2017
@RomanDzhabarov RomanDzhabarov deleted the plumb-tracer branch May 24, 2017 05:54
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
* Remove 5 seconds sleep for integration tests.

* Update per comment
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Description**
This commit add OwnerReference for HTTPRouteFilters on creation.

**Related Issues/PRs (if applicable)**

Fixes: envoyproxy/ai-gateway#873

---------

Signed-off-by: googs1025 <googs1025@gmail.com>
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