Skip to content

Commit

Permalink
Merge pull request #150 from bshifter/fix-otel-kvlist-subscript
Browse files Browse the repository at this point in the history
fix: otel kvlist get_subscript
  • Loading branch information
alltilla authored Jun 7, 2024
2 parents 9eca9ea + d724d7b commit 7670e86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/grpc/otel/filterx/object-otel-kvlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ KVList::get_subscript(FilterXObject *key)
ProtobufField *converter = otel_converter_by_type(FieldDescriptor::TYPE_MESSAGE);
KeyValue *kv = get_mutable_kv_for_key(key_c_str);
if (!kv)
{
kv = repeated_kv->Add();
kv->set_key(key_c_str);
}
return NULL;

return converter->Get(kv, "value");
}
Expand Down

0 comments on commit 7670e86

Please sign in to comment.