Exemplo n.º 1
0
        /// <summary>
        /// Get properties to include in tracing info
        /// </summary>
        /// <param name="Span">The span to add metadata to</param>
        /// <param name="Prefix">Prefix for all metadata keys</param>
        public override void GetTraceMetadata(ITraceSpan Span, string Prefix)
        {
            base.GetTraceMetadata(Span, Prefix);

            Span.AddMetadata(Prefix + "target.name", Parameters.Target);
            Span.AddMetadata(Prefix + "target.config", Parameters.Configuration.ToString());
            Span.AddMetadata(Prefix + "target.platform", Parameters.Platform.ToString());

            if (Parameters.Project != null)
            {
                Span.AddMetadata(Prefix + "target.project", Parameters.Project);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get properties to include in tracing info
 /// </summary>
 /// <param name="Span">The scope to add properties to</param>
 /// <param name="Prefix">Prefix for metadata entries</param>
 public virtual void GetTraceMetadata(ITraceSpan Span, string Prefix)
 {
     Span.AddMetadata(Prefix + "source.file", SourceLocation.Item1.MakeRelativeTo(CommandUtils.RootDirectory));
     Span.AddMetadata(Prefix + "source.line", SourceLocation.Item2.ToString());
 }