Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release] core-1.10.0 release updates #2317

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Conversation

opentelemetrybot
Copy link
Collaborator

Note: This PR was opened automatically by the core version update workflow.

Merge once packages are available on NuGet and the build passes.

Changes

  • Sets OpenTelemetryCoreLatestVersion in Common.props to 1.10.0.

@opentelemetrybot opentelemetrybot requested a review from a team as a code owner November 12, 2024 21:31
@opentelemetrybot opentelemetrybot added the release Related to the release process label Nov 12, 2024
@github-actions github-actions bot added comp:resources.gcp Things related to OpenTelemetry.Resources.Gcp comp:resources.host Things related to OpenTelemetry.Resources.Host comp:resources.operatingsystem Things related to OpenTelemetry.Resources.OperatingSystem comp:resources.process Things related to OpenTelemetry.Resources.Process comp:resources.processruntime Things related to OpenTelemetry.Resources.ProcessRuntime comp:sampler.aws Things related to OpenTelemetry.Samplers.AWS labels Nov 12, 2024
@github-actions github-actions bot added documentation Improvements or additions to documentation comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva comp:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector comp:instrumentation.aws Things related to OpenTelemetry.Instrumentation.AWS comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda labels Nov 12, 2024
@@ -88,7 +87,7 @@ public override void OnEnd(LogRecord data)

if (data.Exception != null)
{
activity.RecordException(data.Exception);
activity.AddException(data.Exception);
Copy link
Member

Choose a reason for hiding this comment

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

Where something was calling ActivityExtensions.RecordException I switched it to call Activity.AddException because Activity.AddException does the same job (add event matching exception semantic conventions), no migration necessary.

@@ -59,8 +59,10 @@ public override void RecordException(Exception exception, Attributes? attributes

var tags = attributes != null ? new TagList(attributes.AllAttributes.ToArray()) : default;

this.activity.RecordException(exception, tags);
this.activity.AddException(exception, tags);
#pragma warning disable CS0618 // Type or member is obsolete
Copy link
Member

Choose a reason for hiding this comment

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

Where something was calling ActivityExtensions.SetStatus I suppressed warning instead of updating to use Activity.Status \ Activity.StatusDescription. The reason for that is they don't do the same things. In order for Activity.Status \ Activity.StatusDescription to work, users need to also upgrade to a compatible exporter which understands the status fields on Activity. I decided calling the old extension for now was the safer bet.

Copy link
Member

Choose a reason for hiding this comment

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

Exception made in ElasticsearchRequestPipelineDiagnosticListener which was calling the newer Activity APIs to translate http status code but calling the obsolete extensions when there was an exception. Updated to use the newer Activity APIs there so it is consistent.

Copy link
Contributor

Choose a reason for hiding this comment

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

#2321 created

Copy link
Contributor

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -59,8 +59,10 @@ public override void RecordException(Exception exception, Attributes? attributes

var tags = attributes != null ? new TagList(attributes.AllAttributes.ToArray()) : default;

this.activity.RecordException(exception, tags);
this.activity.AddException(exception, tags);
#pragma warning disable CS0618 // Type or member is obsolete
Copy link
Contributor

Choose a reason for hiding this comment

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

#2321 created

@Kielek Kielek merged commit 4f230d8 into main Nov 13, 2024
132 checks passed
@Kielek Kielek deleted the release/post-core-1.10.0-update branch November 13, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva comp:exporter.influxdb Things related to OpenTelemetry.Exporter.InfluxDB comp:exporter.instana Things related to OpenTelemetry.Instrumentation.Instana comp:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector comp:exporter.stackdriver Things related to OpenTelemetry.Exporter.Stackdriver comp:extensions.aws Things related to OpenTelemetry.Extensions.AWS comp:extensions.enrichment Things related to OpenTelemetry.Extensions.Enrichment comp:extensions Things related to OpenTelemetry.Extensions comp:instrumentation.aspnet.telemetryhttpmodule Things related to OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule comp:instrumentation.aspnet Things related to OpenTelemetry.Instrumentation.AspNet comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.aws Things related to OpenTelemetry.Instrumentation.AWS comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda comp:instrumentation.cassandra Things related to OpenTelemetry.Instrumentation.Cassandra comp:instrumentation.confluentkafka Things related to OpenTelemetry.Instrumentation.ConfluentKafka comp:instrumentation.elasticsearchclient Things related to OpenTelemetry.Instrumentation.ElasticsearchClient comp:instrumentation.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore comp:instrumentation.eventcounters Things related to OpenTelemetry.Instrumentation.EventCounters comp:instrumentation.grpccore Things related to OpenTelemetry.Instrumentation.GrpcCore comp:instrumentation.grpcnetclient Things related to OpenTelemetry.Instrumentation.GrpcNetClient comp:instrumentation.hangfire Things related to OpenTelemetry.Instrumentation.Hangfire comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.owin Things related to OpenTelemetry.Instrumentation.Owin comp:instrumentation.process Things related to OpenTelemetry.Instrumentation.Process comp:instrumentation.quartz Things related to OpenTelemetry.Instrumentation.Quartz comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient comp:instrumentation.stackexchangeredis Things related to OpenTelemetry.Instrumentation.StackExchangeRedis comp:instrumentation.wcf Things related to OpenTelemetry.Instrumentation.Wcf comp:resources.aws Things related to OpenTelemetry.Resources.AWS comp:resources.azure Things related to OpenTelemetry.Resources.Azure comp:resources.container Things related to OpenTelemetry.Resources.Container comp:resources.gcp Things related to OpenTelemetry.Resources.Gcp comp:resources.host Things related to OpenTelemetry.Resources.Host comp:resources.operatingsystem Things related to OpenTelemetry.Resources.OperatingSystem comp:resources.process Things related to OpenTelemetry.Resources.Process comp:resources.processruntime Things related to OpenTelemetry.Resources.ProcessRuntime comp:sampler.aws Things related to OpenTelemetry.Samplers.AWS documentation Improvements or additions to documentation infra Infra work - CI/CD, code coverage, linters release Related to the release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.