@@ -146,8 +146,10 @@ MetadataCustomTag::metadata(const CustomTagContext& ctx) const {
146146 }
147147}
148148
149- FormatterCustomTag::FormatterCustomTag (absl::string_view tag, absl::string_view value) : tag_(tag) {
150- auto formatter_or = Formatter::FormatterImpl::create (value, true );
149+ FormatterCustomTag::FormatterCustomTag (absl::string_view tag, absl::string_view value,
150+ const Formatter::CommandParserPtrVector& command_parsers)
151+ : tag_(tag) {
152+ auto formatter_or = Formatter::FormatterImpl::create (value, true , command_parsers);
151153 THROW_IF_NOT_OK_REF (formatter_or.status ());
152154 formatter_ = std::move (formatter_or.value ());
153155}
@@ -171,7 +173,8 @@ void FormatterCustomTag::applyLog(envoy::data::accesslog::v3::AccessLogCommon& e
171173}
172174
173175CustomTagConstSharedPtr
174- CustomTagUtility::createCustomTag (const envoy::type::tracing::v3::CustomTag& tag) {
176+ CustomTagUtility::createCustomTag (const envoy::type::tracing::v3::CustomTag& tag,
177+ const Formatter::CommandParserPtrVector& command_parsers) {
175178 switch (tag.type_case ()) {
176179 case envoy::type::tracing::v3::CustomTag::TypeCase::kLiteral :
177180 return std::make_shared<const Tracing::LiteralCustomTag>(tag.tag (), tag.literal ());
@@ -182,7 +185,8 @@ CustomTagUtility::createCustomTag(const envoy::type::tracing::v3::CustomTag& tag
182185 case envoy::type::tracing::v3::CustomTag::TypeCase::kMetadata :
183186 return std::make_shared<const Tracing::MetadataCustomTag>(tag.tag (), tag.metadata ());
184187 case envoy::type::tracing::v3::CustomTag::TypeCase::kValue :
185- return std::make_shared<const Tracing::FormatterCustomTag>(tag.tag (), tag.value ());
188+ return std::make_shared<const Tracing::FormatterCustomTag>(tag.tag (), tag.value (),
189+ command_parsers);
186190 case envoy::type::tracing::v3::CustomTag::TypeCase::TYPE_NOT_SET:
187191 break ; // Panic below.
188192 }
0 commit comments