Skip to content
This repository was archived by the owner on Jul 5, 2020. It is now read-only.

Move W3C classes to base SDK so everyone can use them#1138

Merged
lmolkova merged 9 commits intodevelopfrom
lmolkova/moveW3CBase
Jan 26, 2019
Merged

Move W3C classes to base SDK so everyone can use them#1138
lmolkova merged 9 commits intodevelopfrom
lmolkova/moveW3CBase

Conversation

@lmolkova
Copy link
Copy Markdown

W3C implementation is used by Web and AspNetCore SDKs.

We are going to enable W3C for some 1DS users that do not necessarily use Web SDK (and reference DependencyCollector that declares W3C implementation).

Without this change, we would require everyone to install base + dependency collector just to onboard W3C. With this change, it is still an explicit choice to enable it.

W3C is moved to base, Implementation in dependency collector is deprecated with error.

@lmolkova lmolkova closed this Jan 25, 2019
@lmolkova lmolkova reopened this Jan 25, 2019
Liudmila Molkova added 2 commits January 24, 2019 17:12
Copy link
Copy Markdown
Member

@Dmitry-Matveev Dmitry-Matveev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls. take a look at the comment before merge.

/// https://github.com/w3c/distributed-tracing/blob/master/trace_context/HTTP_HEADER_FORMAT.md#trace-id
/// </summary>
/// <returns>Random 16 bytes array encoded as hex string</returns>
[Obsolete("Use Microsoft.ApplicationInsights.Extensibility.W3C.W3CUtilities.GenerateTraceId instead.", true)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it break compilation? It can be fine if we didn't have this feature in any stable (I remember we didn't), so migrating between stables won't suddenly stop compiling, right?

/// <param name="activity">Activity to generate W3C context on.</param>
/// <returns>The same Activity for chaining.</returns>
[Obsolete("Not ready for public consumption.")]
[Obsolete("Microsoft.ApplicationInsights.Extensibility.W3C.W3CActivityExtensions.GenerateW3CContext instead.", true)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may need to add "Use" here and in the other cases below.

/// https://github.com/w3c/distributed-tracing/blob/master/trace_context/HTTP_HEADER_FORMAT.md#trace-id
/// </summary>
/// <returns>Random 16 bytes array encoded as hex string</returns>
[Obsolete("Use Microsoft.ApplicationInsights.Extensibility.W3C.W3CUtilities.GenerateTraceId instead.", true)]
Copy link
Copy Markdown
Contributor

@cijothomas cijothomas Jan 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also mention the name of the nuget package as well - Microsoft.ApplicationInsights

@lmolkova lmolkova merged commit 055bcaa into develop Jan 26, 2019
@lmolkova lmolkova deleted the lmolkova/moveW3CBase branch September 3, 2019 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants