From 8ad4c122db3878a5c1432387f7e2ddd09a1b16f3 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Mon, 18 Mar 2024 18:57:58 -0400 Subject: [PATCH] Add allowed external types file --- crates/weaver_semconv_gen/allowed-external-types.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/weaver_semconv_gen/allowed-external-types.toml b/crates/weaver_semconv_gen/allowed-external-types.toml index e69de29b..556d7b78 100644 --- a/crates/weaver_semconv_gen/allowed-external-types.toml +++ b/crates/weaver_semconv_gen/allowed-external-types.toml @@ -0,0 +1,8 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# This is used with cargo-check-external-types to reduce the surface area of downstream crates from +# the public API. Ideally this can have a few exceptions as possible. +allowed_external_types = [ + "weaver_semconv::Error", + "weaver_resolver::Error", +]