jenkinsci / opentelemetry-plugin

Monitor and observe Jenkins with OpenTelemetry.
https://plugins.jenkins.io/opentelemetry/
Apache License 2.0
96 stars 49 forks source link

Cannot customize the `service.name` and `service.namespace` #288

Closed oleksii-kudria closed 2 years ago

oleksii-kudria commented 2 years ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.303.3 OS: Linux - 4.4.0-1124-aws --- ace-editor:1.1 analysis-model-api:10.3.0 anka-build:2.5.0 ansicolor:0.6.2 ant:1.10 antisamy-markup-formatter:2.1 apache-httpcomponents-client-4-api:4.5.13-1.0 artifactory:3.12.5 authentication-tokens:1.4 aws-credentials:1.28.1 aws-java-sdk:1.11.687 aws-lambda:0.5.10 basic-branch-build-strategies:1.3.2 blueocean:1.24.0 blueocean-autofavorite:1.2.4 blueocean-bitbucket-pipeline:1.24.0 blueocean-commons:1.24.0 blueocean-config:1.24.0 blueocean-core-js:1.24.0 blueocean-dashboard:1.24.0 blueocean-display-url:2.3.0 blueocean-events:1.24.0 blueocean-git-pipeline:1.24.0 blueocean-github-pipeline:1.24.0 blueocean-i18n:1.24.0 blueocean-jira:1.24.0 blueocean-jwt:1.24.0 blueocean-personalization:1.24.0 blueocean-pipeline-api-impl:1.24.0 blueocean-pipeline-editor:1.24.0 blueocean-pipeline-scm-api:1.24.0 blueocean-rest:1.24.0 blueocean-rest-impl:1.24.0 blueocean-web:1.24.0 bootstrap4-api:4.6.0-3 bootstrap5-api:5.0.2-1 bouncycastle-api:2.20 branch-api:2.6.5 build-failure-analyzer:2.1.0 build-timeout:1.19 caffeine-api:2.9.2-29.v717aac953ff3 checks-api:1.7.2 cloudbees-bitbucket-branch-source:2.9.10 cloudbees-disk-usage-simple:0.10 cloudbees-folder:6.16 command-launcher:1.4 compress-artifacts:1.10 conditional-buildstep:1.4.1 config-file-provider:3.8.1 configuration-as-code:1.54 copyartifact:1.46.1 credentials:2.6.1 credentials-binding:1.27 data-tables-api:1.10.25-3 display-url-api:2.3.5 docker-commons:1.16 docker-workflow:1.23 durable-task:1.38 dynamic-axis:1.0.3 echarts-api:5.1.2-5 email-ext:2.77 embeddable-build-status:2.0.3 extended-read-permission:3.2 favorite:2.3.2 font-awesome-api:5.15.3-4 forensics-api:1.2.1 git:4.10.0 git-client:3.10.0 git-server:1.9 github:1.33.1 github-api:1.122 github-branch-source:2.11.2 gitlab-api:1.0.6 gitlab-branch-source:1.5.9 gitlab-logo:1.0.5 gitlab-oauth:1.6 gitlab-plugin:1.5.22 google-oauth-plugin:1.0.0 google-play-android-publisher:4.1 gradle:1.35 h2-api:1.4.199 handlebars:1.1.1 handy-uri-templates-2-api:2.1.8-1.0 hashicorp-vault-plugin:3.6.0 htmlpublisher:1.23 ivy:2.1 jackson2-api:2.12.4 javadoc:1.6 jaxb:2.3.0 jdk-tool:1.4 jenkins-design-language:1.24.0 jira:3.0.14 jjwt-api:0.11.2-5.143e44951c52 job-dsl:1.77 job-import-plugin:3.4 jobConfigHistory:2.24 jquery:1.12.4-1 jquery-detached:1.2.1 jquery3-api:3.6.0-2 jsch:0.1.55.2 junit:1.53 kubernetes:1.30.1 kubernetes-cli:1.10.3 kubernetes-client-api:5.4.1 kubernetes-credentials:0.9.0 lockable-resources:2.10 mailer:1.34 matrix-auth:2.6.8 matrix-project:1.19 maven-plugin:3.12 mercurial:2.12 metrics:4.0.2.8 momentjs:1.1.1 monitoring:1.80.0 new-relic:1.0.4 node-iterator-api:1.5.0 nodejs:1.4.0 nodelabelparameter:1.7.2 oauth-credentials:0.4 okhttp-api:3.14.9 opentelemetry:1.1.0-rc2 parameterized-scheduler:0.8 parameterized-trigger:2.42 performance:3.20 pipeline-aws:1.43 pipeline-build-step:2.15 pipeline-graph-analysis:1.10 pipeline-input-step:2.12 pipeline-maven:3.9.3 pipeline-milestone-step:1.3.1 pipeline-model-api:1.9.2 pipeline-model-definition:1.9.2 pipeline-model-extensions:1.9.2 pipeline-rest-api:2.12 pipeline-stage-step:2.5 pipeline-stage-tags-metadata:1.9.2 pipeline-stage-view:2.12 pipeline-utility-steps:2.3.1 plain-credentials:1.7 plugin-util-api:2.4.0 popper-api:1.16.1-2 popper2-api:2.5.4-3 pubsub-light:1.13 rebuild:1.32 remoting-opentelemetry:1.0-rc89.d67d14d05962 resource-disposer:0.14 run-condition:1.3 saml:2.0.8 sauce-ondemand:1.187 scm-api:2.6.5 script-security:1.78 selenium-axis:0.0.6 slack:2.46 snakeyaml-api:1.29.1 sonar:2.12 sse-gateway:1.21 ssh-agent:1.17 ssh-credentials:1.19 ssh-slaves:1.31.0 sshd:3.0.3 statistics-gatherer:2.0.3 structs:1.23 swarm:3.22 throttle-concurrents:2.3 timestamper:1.11.3 token-macro:2.15 trilead-api:1.0.13 uno-choice:2.5.7 variant:1.4 warnings-ng:9.5.0 windows-slaves:1.5 workflow-aggregator:2.6 workflow-api:2.46 workflow-basic-steps:2.22 workflow-cps:2.94 workflow-cps-global-lib:2.19 workflow-durable-task-step:2.40 workflow-job:2.41 workflow-multibranch:2.24 workflow-scm-step:2.13 workflow-step-api:2.24 workflow-support:3.8 ws-cleanup:0.38 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Hello, I'm trying to change service.name and service.namespace in Jenkins > Manage Jenkins > Configure System > OpenTelemetry > Advanced, but I still receive default value jenkins. For exporter I use New Relic.

Reproduction steps

  1. Change service.name and service.namespace to my-jenkins and cicd

Expected Results

I expect receive values my-jenkins and cicd

Actual Results

I receive value jenkins

Anything else?

No response

cyrille-leclerc commented 2 years ago

This could be a regression of v1.1.0-rc2. I'll check asap. Regression reproduced.

@alexey-kudrya please not that v1.0.1 is not impâcted by this bug. See https://github.com/jenkinsci/opentelemetry-plugin/releases/tag/opentelemetry-1.0.1

cyrille-leclerc commented 2 years ago

I'll cut V1.1.1 on Wednesday with the fix https://github.com/jenkinsci/opentelemetry-plugin/pull/291

cyrille-leclerc commented 2 years ago

Please upgrade to v1.1.1 https://github.com/jenkinsci/opentelemetry-plugin/releases/tag/opentelemetry-1.1.1