Sitelet https://github.com/Microsoft/ApplicationInsights-dotnet-server/pull/1138
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
Liudmila Molkova (lmolkova) merged 9 commits into
developfrom
lmolkova/moveW3CBase
Jan 26, 2019
Merged

Liudmila Molkova (lmolkova) merged 9 commits into
developfrom
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.

Liudmila Molkova added 2 commits January 24, 2019 17:12

@Dmitry-Matveev Dmitry-Matveev left a comment

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.

Pls. take a look at the comment before merge.

Comment thread Src/Common/StringUtilities.cs Outdated
/// 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?

Comment thread Src/Common/W3C/W3CActivityExtensions.cs Outdated
/// <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.

Comment thread Src/Common/W3C/W3CUtilities.cs Outdated
Comment thread Src/Common/StringUtilities.cs Outdated
/// 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)]

@cijothomas Cijo Thomas (cijothomas) Jan 25, 2019 •

Copy link
Copy Markdown
Contributor

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
Liudmila Molkova (lmolkova) merged commit 055bcaa into develop Jan 26, 2019
@lmolkova
Liudmila Molkova (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