Skip to content

Commit

Permalink
update .env, cartservice to get it to build with flagd
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPSplunk committed Mar 19, 2024
1 parent 359e64e commit 91366b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Demo App version
IMAGE_NAME=ghcr.io/alexpsplunk/astroshop
IMAGE_VERSION=1.8.0-edu-o11y
DEMO_VERSION=latest
DEMO_VERSION=1.8.1-edu-o11y

# Dependent images
COLLECTOR_CONTRIB_IMAGE=otel/opentelemetry-collector-contrib:0.96.0
Expand Down
6 changes: 3 additions & 3 deletions src/cartservice/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
using Serilog.Formatting.Json;
using Serilog.Sinks.OpenTelemetry;
using Serilog.Templates;
using OpenFeature;
using OpenFeature.Contrib.Providers.Flagd;
using OpenFeature.Contrib.Hooks.Otel;


// Alex: the next step would be to change the level "information" to info. ChatGPT suggests
Expand Down Expand Up @@ -56,9 +59,6 @@

string template = "{ {Timestamp: @t, msg: @m, severity: @l, @x, ..@p} }\n";
//string expressionTemplate = "{\"Timestamp\":\"{Timestamp:yyyy-MM-dd HH:mm:ss}\",\"severity\":\"{Level}\"}\n";
using OpenFeature;
using OpenFeature.Contrib.Providers.Flagd;
using OpenFeature.Contrib.Hooks.Otel;

var builder = WebApplication.CreateBuilder(args);
string redisAddress = builder.Configuration["REDIS_ADDR"];
Expand Down
2 changes: 1 addition & 1 deletion src/cartservice/src/cartservice.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.25.1" />
<PackageReference Include="Grpc.Net.Client" Version="2.60.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.61.0" />
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="4.0.0-*" />
<PackageReference Include="System" Version="4.1.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0" />
Expand Down

0 comments on commit 91366b3

Please sign in to comment.