-
Notifications
You must be signed in to change notification settings - Fork 53
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
🚧 Initial attempt to support distributed traces for the cloud lifecycle #138
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 5ec10da.
…bda: Unexpected exception encountered while provisioning agent'
…bda: Unexpected exception encountered while provisioning agent'
…bda: Unexpected exception encountered while provisioning agent'
*/ | ||
@Extension(dynamicLoadable = YesNoMaybe.YES) | ||
@Symbol("cloudSpanNamingStrategy") | ||
public class CloudSpanNamingStrategy { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NodeProvisioner.PlannedNode plannedNode = plannedNodes.iterator().next(); | ||
|
||
String rootSpanName = this.cloudSpanNamingStrategy.getRootSpanName(plannedNode); | ||
JenkinsOpenTelemetryPluginConfiguration.StepPlugin stepPlugin = JenkinsOpenTelemetryPluginConfiguration.get().findStepPluginOrDefault("cloud", cloud.getDescriptor()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pom.xml
Outdated
@@ -19,7 +19,7 @@ | |||
<properties> | |||
<revision>0.16</revision> | |||
<changelist>-SNAPSHOT</changelist> | |||
<jenkins.version>2.235.5</jenkins.version> | |||
<jenkins.version>2.277.1</jenkins.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to workaround the issue in my local environment since I get some stacktrace errors:
WARNING hudson.slaves.NodeProvisioner#lambda: Unexpected exception encountered while provisioning agent
So maybe, my machine is too slow that somehow that particular issue happens....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…oner#lambda: Unexpected exception encountered while provisioning agent'" This reverts commit 091504e.
…oner#lambda: Unexpected exception encountered while provisioning agent'" This reverts commit baa08c8.
…oner#lambda: Unexpected exception encountered while provisioning agent'" This reverts commit df3556e.
…r-cloud-provisioning * upstream/master: Support span labels with the plugin details for the SimpleBuildStep implementations (jenkinsci#137)
Require upper bound dependencies error for commons-io:commons-io:2.6 paths to dependency are: +-io.jenkins.plugins:opentelemetry:0.16-SNAPSHOT +-org.jenkins-ci.plugins:google-compute-engine:4.3.8 +-commons-io:commons-io:2.6
…r-cloud-provisioning * upstream/master: Explicitly specify the initial git branch name to "master" Because the default git branch name is more frequently set to "main" on development environments [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release opentelemetry-0.16
5f2490a
to
4f3e52b
Compare
public static final AttributeKey<String> CI_CLOUD_LABEL = AttributeKey.stringKey("ci.cloud.label"); | ||
public static final AttributeKey<String> CI_CLOUD_NAME = AttributeKey.stringKey("ci.cloud.name"); | ||
/** | ||
* @see <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/cloud.md">cloud semantic conventions</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to create a dedicated class to hold these cloud attributes like OTelCloudSemanticAttributes
? It was misleading for me to see these attributes on the JenkinsOtelSemanticAttributes
. I was wondering if we missed the Otel Cloud attributes.
🚧
What
Given the
CloudProvisioningListener
let's create specific transactions for the one-shot cloud provisioning.This is just exploring whether it can provide enough context.
OTOH, it uses the same pattern that was done for the build transactions.
Details
UI
K8s workers
Expand to view
GCE workers
Expand to view
Follow ups
2.189.1
and I was not able to see the issue. Can we bump the version? I'll probably do at least for this PR to be able to test the whole lifecycle otherwise it will be always reported as failureAWS
provisioner.Tasks
Issues
##95