Parcourir la source

fix: otel sampler mnesia table should not be local_content

JimMoen il y a 1 an
Parent
commit
981ac897d8

+ 1 - 0
apps/emqx_opentelemetry/include/emqx_otel_trace.hrl

@@ -34,6 +34,7 @@
 %% ====================
 %% OTEL sample whitelist/blacklist Table
 -define(EMQX_OTEL_SAMPLER, emqx_otel_sampler).
+-define(EMQX_OTEL_SAMPLER_SHARD, emqx_otel_sampler_shard).
 
 -define(EMQX_OTEL_SAMPLE_CLIENTID, 1).
 -define(EMQX_OTEL_SAMPLE_TOPIC, 2).

+ 1 - 1
apps/emqx_opentelemetry/src/sampler/emqx_otel_sampler.erl

@@ -41,8 +41,8 @@ create_tables() ->
         ?EMQX_OTEL_SAMPLER,
         [
             {type, ordered_set},
+            {rlog_shard, ?EMQX_OTEL_SAMPLER_SHARD},
             {storage, disc_copies},
-            {local_content, true},
             {record_name, ?EMQX_OTEL_SAMPLER},
             {attributes, record_info(fields, ?EMQX_OTEL_SAMPLER)}
         ]