Skip to content

Commit

Permalink
Otel config future
Browse files Browse the repository at this point in the history
  • Loading branch information
bryn committed Oct 22, 2023
1 parent 3ab7a0b commit 7b307b0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
use schemars::JsonSchema;
use serde::Deserialize;

use crate::plugins::telemetry::config_new::attributes::Extendable;
use crate::plugins::telemetry::config_new::attributes::RouterAttributes;
use crate::plugins::telemetry::config_new::attributes::RouterCustomAttribute;
use crate::plugins::telemetry::config_new::attributes::RouterEvent;
use crate::plugins::telemetry::config_new::attributes::SubgraphAttributes;
use crate::plugins::telemetry::config_new::attributes::SubgraphCustomAttribute;
use crate::plugins::telemetry::config_new::attributes::SupergraphAttributes;
use crate::plugins::telemetry::config_new::attributes::SupergraphCustomAttribute;
use crate::plugins::telemetry::config_new::attributes::{
DefaultAttributeRequirementLevel, Extendable,
};

#[allow(dead_code)]
#[derive(Clone, Deserialize, JsonSchema, Debug, Default)]
#[serde(deny_unknown_fields, default)]
pub(crate) struct Instruments {
/// The attributes to include by default in instruments based on their level as specified in the otel semantic conventions and Apollo documentation.
default_attribute_requirement_level: DefaultAttributeRequirementLevel,

/// Router service instruments. For more information see documentation on Router lifecycle.
router: Extendable<RouterInstruments, Instrument<RouterAttributes, RouterCustomAttribute>>,
/// Supergraph service instruments. For more information see documentation on Router lifecycle.
Expand Down

0 comments on commit 7b307b0

Please sign in to comment.