File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/main/java/app/multiplayer/session_recorder/type Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ SessionRecorder.init(config);
3535// Use it with static methods
3636Session session = new Session ();
3737session. setName(" My Session" );
38+
39+ // Add tags if needed
40+ session. addTag(" environment" , " production" );
41+ session. addTag(" version" , " 1.0.0" );
42+
3843SessionRecorder . start(SessionType . PLAIN , session);
3944```
4045
Original file line number Diff line number Diff line change @@ -64,6 +64,23 @@ public void setTags(List<Tag> tags) {
6464 this .tags = tags ;
6565 }
6666
67+ /**
68+ * Add a tag to the session
69+ * @param key the tag key
70+ * @param value the tag value
71+ */
72+ public void addTag (String key , String value ) {
73+ this .tags .add (new Tag (key , value ));
74+ }
75+
76+ /**
77+ * Add a tag to the session
78+ * @param tag the tag to add
79+ */
80+ public void addTag (Tag tag ) {
81+ this .tags .add (tag );
82+ }
83+
6784 // --- Inner class for Tag ---
6885
6986 public static class Tag {
You can’t perform that action at this time.
0 commit comments