Skip to content

Commit d3162e7

Browse files
Update attributes_processor.h
1 parent 0f8dedf commit d3162e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sdk/include/opentelemetry/sdk/metrics/view/attributes_processor.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,14 @@ class FilteringAttributesProcessor : public AttributesProcessor
9494

9595
bool isPresent(nostd::string_view key) const noexcept override
9696
{
97-
return (allowed_attribute_keys_.find(key.data()) != allowed_attribute_keys_.end());
97+
OTEL_INTERNAL_LOG_WARN("INSIDE IS PRESENT");
98+
auto d = key.data();
99+
OTEL_INTERNAL_LOG_WARN("INSIDE IS PRESENT");
100+
auto haskey = allowed_attribute_keys_.find(d);
101+
OTEL_INTERNAL_LOG_WARN("Called find for key");
102+
auto end = allowed_attribute_keys_.end();
103+
OTEL_INTERNAL_LOG_WARN("Have end");
104+
return (haskey != end);
98105
}
99106

100107
private:

0 commit comments

Comments
 (0)