Skip to content

Commit 840ac17

Browse files
authored
Merge pull request #52 from miransar/nr-browser-agent-instrumentation
Adds New Relic browser agent to frontend service.
2 parents fa50867 + 06113dd commit 840ac17

File tree

7 files changed

+1047
-103
lines changed

7 files changed

+1047
-103
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Have a suggestion, or running into problems with our fork? Please let us know by
5252

5353
### Contributors
5454
* [Brad Schmitt](https://github.com/bpschmitt)
55+
* [Mir Ansar](https://github.com/miransar)
5556
* [Daniel Kim](https://github.com/lazyplatypus)
5657
* [Krzysztof Spikowski](https://github.com/greenszpila)
5758
* [Ugur Türkarslan](https://github.com/utr1903)

docs/kubernetes_deployment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,18 @@ helm upgrade --install newrelic-otel open-telemetry/opentelemetry-demo --version
5656

5757
Optionally, you can enable a version of the `recommendationService` that is instrumented with New Relic APM instead of OpenTelemetry. New Relic APM instrumented services are interoperable with OpenTelemetry instrumented services as New Relic supports W3C trace context.
5858

59+
5960
```console
6061
helm upgrade --install newrelic-otel open-telemetry/opentelemetry-demo --version 0.32.0 --values ./helm/values.yaml --values ./helm/recommendation_service_values.yaml -n opentelemetry-demo
6162
```
6263

64+
65+
You can also enable New Relic browser agent to the frontend service. New Relic browser agent is interoperable with OpenTelemetry services as it supports W3C headers.
66+
67+
```console
68+
helm upgrade --install newrelic-otel open-telemetry/opentelemetry-demo --version 0.32.0 --values ./helm/values.yaml --values ./helm/frontend_service.yaml -n opentelemetry-demo
69+
```
70+
6371
## Install Prometheus Exporters (Optional)
6472

6573
You can install the Prometheus Exporters for Kafka, Postgres, and Redis to expose Prometheus metrics for the Kafka,

helm/frontend_service.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
components:
2+
frontend:
3+
imageOverride:
4+
repository: newrelic/otel-demo
5+
tag: "1.11.0-frontend"
6+
pullPolicy: Always
7+
env:
8+
- name: NEW_RELIC_APP_NAME
9+
value: "frontend-web-nr"
10+
- name: FRONTEND_PORT
11+
value: "8080"
12+
- name: FRONTEND_ADDR
13+
value: :8080
14+
- name: AD_SERVICE_ADDR
15+
value: '{{ include "otel-demo.name" . }}-adservice:8080'
16+
- name: CART_SERVICE_ADDR
17+
value: '{{ include "otel-demo.name" . }}-cartservice:8080'
18+
- name: CHECKOUT_SERVICE_ADDR
19+
value: '{{ include "otel-demo.name" . }}-checkoutservice:8080'
20+
- name: CURRENCY_SERVICE_ADDR
21+
value: '{{ include "otel-demo.name" . }}-currencyservice:8080'
22+
- name: PRODUCT_CATALOG_SERVICE_ADDR
23+
value: '{{ include "otel-demo.name" . }}-productcatalogservice:8080'
24+
- name: RECOMMENDATION_SERVICE_ADDR
25+
value: '{{ include "otel-demo.name" . }}-recommendationservice:8080'
26+
- name: SHIPPING_SERVICE_ADDR
27+
value: '{{ include "otel-demo.name" . }}-shippingservice:8080'
28+
- name: FLAGD_HOST
29+
value: '{{ include "otel-demo.name" . }}-flagd'
30+
- name: FLAGD_PORT
31+
value: "8013"
32+
- name: OTEL_COLLECTOR_HOST
33+
value: $(OTEL_COLLECTOR_NAME)
34+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
35+
value: http://$(OTEL_COLLECTOR_NAME):4317
36+
- name: WEB_OTEL_SERVICE_NAME
37+
value: frontend-web
38+
- name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
39+
value: http://localhost:8080/otlp-http/v1/traces
40+
- name: NEW_RELIC_LICENSE_KEY
41+
valueFrom:
42+
secretKeyRef:
43+
name: newrelic-license-key
44+
key: license-key

0 commit comments

Comments
 (0)